[issue7242] Forking in a thread raises RuntimeError
Greg Jednaszewski
report at bugs.python.org
Fri Feb 26 21:27:35 CET 2010
Greg Jednaszewski <jednaszewski at gmail.com> added the comment:
I spent some time working on and testing a unit test as well. It's the same basic idea as Zsolt Cserna's, but with a slightly different approach. See 7242_unittest.diff. My unittest fails pre-patch and succeeds post-patch.
However, I still have reservations about the patch. The existing test test_threading.ThreadJoinOnShutdown.test_3_join_in_forked_from_thread hangs with the patch in place.
Vanilla 2.6.2 - test passes
Vanilla 2.6.4 - test fails
Patched 2.6.4 - test hangs
Note: the code of the test_threading test is identical in all 3 cases. I'd feel more confident about the patch if this test didn't hang with the patch in place.
----------
Added file: http://bugs.python.org/file16381/7242_unittest.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7242>
_______________________________________
More information about the Python-bugs-list
mailing list