Re: Using a signal to terminate a programm running with an asyncore loop

2008-02-19 Thread [EMAIL PROTECTED]
On Feb 8, 4:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > When signal is caught handle_shutdown_signal is called. At that point > SHUTDOWN_PERFORMED will ALWAYS be False. Normally all you do in this function > is to set SHUTDOWN_PERFORMED to True and have a test somewhere in your main > program

Re: Using a signal to terminate a programm running with an asyncore loop

2008-02-08 Thread [EMAIL PROTECTED]
On Feb 8, 4:03 pm, Larry Bates <[EMAIL PROTECTED]> wrote: > When signal is caught handle_shutdown_signal is called.  At that point > SHUTDOWN_PERFORMED will ALWAYS be False.  Normally all you do in this function > is to set SHUTDOWN_PERFORMED to True and have a test somewhere in your main > program

Re: Using a signal to terminate a programm running with an asyncore loop

2008-02-08 Thread Larry Bates
[EMAIL PROTECTED] wrote: > On Feb 8, 7:04 am, Larry Bates <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> I'm developing a program that runs using an asyncore loop. Right now >>> I can adequately terminate it using Control-C, but as things get >>> refined I need a better way to stop it.

Re: Using a signal to terminate a programm running with an asyncore loop

2008-02-08 Thread [EMAIL PROTECTED]
On Feb 8, 7:04 am, Larry Bates <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I'm developing a program that runs using an asyncore loop. Right now > > I can adequately terminate it using Control-C, but as things get > > refined I need a better way to stop it. I've developed another > >

Re: Using a signal to terminate a programm running with an asyncore loop

2008-02-08 Thread Larry Bates
[EMAIL PROTECTED] wrote: > I'm developing a program that runs using an asyncore loop. Right now > I can adequately terminate it using Control-C, but as things get > refined I need a better way to stop it. I've developed another > program that executes it as a child process using popen2.Popen4().

Using a signal to terminate a programm running with an asyncore loop

2008-02-07 Thread [EMAIL PROTECTED]
I'm developing a program that runs using an asyncore loop. Right now I can adequately terminate it using Control-C, but as things get refined I need a better way to stop it. I've developed another program that executes it as a child process using popen2.Popen4(). I was attempting to use signals