Re: Cleanly exiting multi thread application on SIGINT

2007-03-23 Thread skip
Jon> Is the following the most elegant way to exit a multi-threaded Jon> application on a Ctrl-C? I am a complete beginner and would have Jon> thought there was some way of doing it without having to use while Jon> 1: pass, but have yet to find a way. I thought there was some sor

Re: Cleanly exiting multi thread application on SIGINT

2007-03-23 Thread Fredrik Lundh
"jrpfinch" wrote: > Is the following the most elegant way to exit a multi-threaded > application on a Ctrl-C? I am a complete beginner and would have > thought there was some way of doing it without having to use while 1: > pass, but have yet to find a way. > def main: >wt = workerThread() >

Cleanly exiting multi thread application on SIGINT

2007-03-23 Thread jrpfinch
Is the following the most elegant way to exit a multi-threaded application on a Ctrl-C? I am a complete beginner and would have thought there was some way of doing it without having to use while 1: pass, but have yet to find a way. N.B. exit() is a method for cleanly exiting the thread using a qu