[issue14308] '_DummyThread' object has no attribute '_Thread__block'
Antoine Pitrou
report at bugs.python.org
Thu Apr 19 15:19:38 CEST 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
Ok, could you try applying the following patch to threading.py?
diff --git a/Lib/threading.py b/Lib/threading.py
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -887,7 +887,7 @@ def _after_fork():
ident = _get_ident()
thread._Thread__ident = ident
new_active[ident] = thread
- else:
+ elif not isinstance(thread, _DummyThread):
# All the others are already stopped.
thread._Thread__stop()
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14308>
_______________________________________
More information about the Python-bugs-list
mailing list