On Jun 29, 2007, at 6:09 AM, tarnoun at mac dot com wrote:
> How do I know that my daemonized ConsoleApplication is quitting
> because of a system shutdown ?
I'm not sure that you can know. What happens in Mac OS X and, I
believe, Linux, is that the system sends a SIGTERM signal to each
running process, which means that you should shut down. Processes
that cannot or will not quit are later sent a SIGKILL signal.
The Rb framework does not provide any support for Unix signals. But,
as it turns out, it is not too hard to do it yourself via declares,
and I have some code for it.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|