summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-04-19 22:05:17 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-04-19 22:05:17 (GMT)
commitdd5aa36f179011f390a0cc6fb4ba7bba1764f1a9 (patch)
tree8eab78b2d8fe17426fe8bc2dca0b33628920a750 /Lib/threading.py
parentbf35c156b48bd09febeb74d0a5b218e959d4225b (diff)
parent8e6e0fdb7fee3796df8b578c1311b5e46005f2d9 (diff)
downloadcpython-dd5aa36f179011f390a0cc6fb4ba7bba1764f1a9.zip
cpython-dd5aa36f179011f390a0cc6fb4ba7bba1764f1a9.tar.gz
cpython-dd5aa36f179011f390a0cc6fb4ba7bba1764f1a9.tar.bz2
Issue #14308: Fix an exception when a dummy thread is in the threading module's active list after a fork().
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 197dec4..8c2cee9 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -871,6 +871,9 @@ class _DummyThread(Thread):
with _active_limbo_lock:
_active[self._ident] = self
+ def _stop(self):
+ pass
+
def join(self, timeout=None):
assert False, "cannot join a dummy thread"