[issue9863] threading, signals, atexit: different execution with different versions
Ned Deily
report at bugs.python.org
Thu Sep 16 00:26:37 CEST 2010
Ned Deily <nad at acm.org> added the comment:
A better fix for the program is to mark the test_loop thread as a daemon thread. As the threading module documentation says, by default threads started from the main thread are non-daemon threads and the "entire Python program exits when no alive non-daemon threads are left." The test case terminates properly by adding a thread.daemon = True after the threading.Thread call in run().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9863>
_______________________________________
More information about the Python-bugs-list
mailing list