Re: Gracefull application exit.

2008-07-26 Thread M.-A. Lemburg
On 2008-07-26 20:30, M.-A. Lemburg wrote: On 2008-07-24 18:06, Robert Rawlins wrote: Chaps, I'm looking to implement an exit/termination process for an application which can be triggered by A) a keyboard interrupt or B) termination of the application as a Daemon using a signal. I hav

Re: Gracefull application exit.

2008-07-26 Thread M.-A. Lemburg
On 2008-07-24 18:06, Robert Rawlins wrote: Chaps, I'm looking to implement an exit/termination process for an application which can be triggered by A) a keyboard interrupt or B) termination of the application as a Daemon using a signal. I have a whole bunch of tasks I want to perform as

Re: Gracefull application exit.

2008-07-24 Thread Cameron Simpson
On 24Jul2008 17:30, Robert Rawlins <[EMAIL PROTECTED]> wrote: | > but mind the caveats: | | Thanks Tim, the main caveat which worries me is the fact that it doesn't get | called when being killed by SIGTERM. When I look at implementing the | application as Daemon will cause complications. | The im

RE: Gracefull application exit.

2008-07-24 Thread Robert Rawlins
> but mind the caveats: Thanks Tim, the main caveat which worries me is the fact that it doesn't get called when being killed by SIGTERM. When I look at implementing the application as Daemon will cause complications. The implementation looks nice and is certainly the way I would like to go, but

Re: Gracefull application exit.

2008-07-24 Thread Tim Golden
Robert Rawlins wrote: I’m looking to implement an exit/termination process for an application which can be triggered by A) a keyboard interrupt or B) termination of the application as a Daemon using a signal. I have a whole bunch of tasks I want to perform as a cleanup before the application

Gracefull application exit.

2008-07-24 Thread Robert Rawlins
Chaps, I'm looking to implement an exit/termination process for an application which can be triggered by A) a keyboard interrupt or B) termination of the application as a Daemon using a signal. I have a whole bunch of tasks I want to perform as a cleanup before the application is terminated