Re: How can I kill a running thread when exiting from __main__

2007-04-03 Thread skip
Steve> Maybe, then, the real answer is "just exit from the main thread"? Yes, I believe so. If that's not what's happening I would look to see if there is another thread which wasn't marked as a daemon. Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I kill a running thread when exiting from __main__

2007-04-03 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Steve> The only way to do this is to have the thread regularly examine a > Steve> "please quit" flag that is set from the main thread when > Steve> termination is required. > > I thought the process would terminate when only daemon threads were left. > > Ski

Re: How can I kill a running thread when exiting from __main__

2007-04-03 Thread skip
Steve> The only way to do this is to have the thread regularly examine a Steve> "please quit" flag that is set from the main thread when Steve> termination is required. I thought the process would terminate when only daemon threads were left. Skip -- http://mail.python.org/mailman/l

Re: How can I kill a running thread when exiting from __main__

2007-04-03 Thread kyosohma
On Apr 3, 12:21 pm, [EMAIL PROTECTED] wrote: > Hi! > > I have the following problem: I have written a short Python server > that creates an indefinite simulation thread that I want to kill when > quitting (Ctrl-C) from Python. Googling around has not given me any > hints on how to cleanly kill runn

Re: How can I kill a running thread when exiting from __main__

2007-04-03 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi! > > I have the following problem: I have written a short Python server > that creates an indefinite simulation thread that I want to kill when > quitting (Ctrl-C) from Python. Googling around has not given me any > hints on how to cleanly kill running threads before

How can I kill a running thread when exiting from __main__

2007-04-03 Thread care02
Hi! I have the following problem: I have written a short Python server that creates an indefinite simulation thread that I want to kill when quitting (Ctrl-C) from Python. Googling around has not given me any hints on how to cleanly kill running threads before exiting. Any help is appreciated! Ca