Path: utzoo!attcan!uunet!cs.utexas.edu!rice!sun-spots-request From: westhawk!thp@relay.eu.net (Timothy H Panton.) Newsgroups: comp.sys.sun Subject: Re: Clean exit from SunView environment. Keywords: Windows Message-ID: <8712@brazos.Rice.edu> Date: 8 Jun 90 08:53:55 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 15 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n184, Replies: v9n184 v9n204 X-Sun-Spots-Digest: Volume 9, Issue 204, message 7 > 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