diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-19 21:55:01 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-04-19 21:55:01 (GMT) |
commit | 8e6e0fdb7fee3796df8b578c1311b5e46005f2d9 (patch) | |
tree | e1f800a5e8c4747cbe643209d54574ab8314b54b /Lib/threading.py | |
parent | 10ac77d2d886c0921b21253b768fca8bc9b3c0dd (diff) | |
download | cpython-8e6e0fdb7fee3796df8b578c1311b5e46005f2d9.zip cpython-8e6e0fdb7fee3796df8b578c1311b5e46005f2d9.tar.gz cpython-8e6e0fdb7fee3796df8b578c1311b5e46005f2d9.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.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 69b7763..58ffa7e 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -1007,6 +1007,9 @@ class _DummyThread(Thread): def _set_daemon(self): return True + def _stop(self): + pass + def join(self, timeout=None): assert False, "cannot join a dummy thread" |