Corey Bertram <co...@qr7.com> added the comment:

let me preface this: I'm no expert on how this should be done ect...

The goal here was to specifically not set daemon on the test_loop thread. In an 
actual app test_loop would perhaps need to shutdown cleanly (save state or what 
have you). That said, your previous suggestion of moving the setting of 
terminate to the close handler (or maybe just call shutdown) works, but defeats 
the whole purpose of using atexit at all.

My understanding is that the main thread has ended execution due to the signal. 
If the signal handler called shutdown, when the test_loop thread exits, all of 
the atexit registered functions would execute (in this example it would mean 
calling the shutdown function twice). It just seems ugly now no matter what.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9863>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to