[issue18418] Thread.isAlive() sometimes True after fork
Charles-François Natali
report at bugs.python.org
Mon Jul 15 22:30:57 CEST 2013
Charles-François Natali added the comment:
> If you want a consistent reproducible test case for this I believe you will need to replace the Thread object's __started with a test wrapper who's set() method blocks waiting for for the fork to have happened before doing the actual set(). That is a bit tricky and may not be worth it.
Actually, setting sys.setswitchinterval(1e-6) makes it fairly easy to reproduce.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18418>
_______________________________________
More information about the Python-bugs-list
mailing list