#shutDown: and OS events
Randal L. Schwartz
merlyn at stonehenge.com
Wed Jan 16 21:17:42 UTC 2008
>>>>> "Brian" == Brian Brown <rbb at techgame.net> writes:
Brian> Is there a mechanism for Squeak to handle an OS request to exit, such
Brian> as someone rebooting their machine? It seems that the #shutDown:
Brian> machinery would not be triggered in that case and any image changes
Brian> would be lost in those cases.
If you're talking about Unix, most versions of Unix that I've seen send a
SIGHUP to every process and wait a bit before actually shutting down.
You can set up a wait-for-SIGHUP with UnixProcess (part of OSProcess),
and take appropriate action when you see it.
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
More information about the Squeak-dev