realbasic-nug
[Top] [All Lists]

Re: Being aware of system shutdown.

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Being aware of system shutdown.
From: Charles Yeomans <charles at declareSub dot com>
Date: Fri, 29 Jun 2007 11:36:43 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <8C73F2DE-DAFB-4EC8-AE0B-DB3CF9BE4257 at mac dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Being aware of system shutdown., Charles Yeomans <=