mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #14308: Fix an exception when a dummy thread is in the threading module's active list after a fork().
This commit is contained in:
commit
dd5aa36f17
3 changed files with 35 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue