Problem breaking out of a thread
nicktsocanos at charter.net
Fri Aug 23 15:00:33 CEST 2002
I have a threading.Thread object. inside it has
self.bRunning = 0
later on in my main program I hook Ctrl-C signal
Jimmy = DooDad(...)
if(Jimmy.bRunning == 0): break
except KeyboardInterrupt, e:
Now when this program is running, the thread reports that it accepted a
interrupt, and that is fine. However, it just freezes up, and never
breaks out of the main loop. I have tried a few ways to get the main
loop to break out but nothing has worked.
at this point I don't need a thread, but I would like to know what
I did wrong and why it just locks up when I hit ctrl-c.
I am working in IDLE, if that makes any difference?
More information about the Python-list