Clean exit from SunView environment.

Timothy H Panton. westhawk!thp at relay.eu.net
Fri Jun 8 18:53:55 AEST 1990


> Is there a means to exit the SunView desktop environment from within a
> SunWindows application?  The intended application would have the pressing
> of a SunWindows button cause exit from SunView.  Currently, the only way I
> know to exit SunView is via the pop-up rootmenu.

I needed to do this on a 386i, from a shell script.  What I did was to put
the process id of the shell that execs suntools in an environment
variable, and then send a TERM sig to that process, suntools on the 386i
has a signal handler that catches SIGTERM and cleans up.  You can get the
386i behavior on 3's and 4's by compiling
/usr/share/src/sun/suntool/suntools.c with -Decd.suntools.

Tim Panton, Westhawk Ltd.
Phone: +44 92822574
uucp : ..!mcvax!ukc!westhawk!thp



More information about the Comp.sys.sun mailing list