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:
Antoine Pitrou 2012-04-20 00:05:17 +02:00
commit dd5aa36f17
3 changed files with 35 additions and 0 deletions

View file

@ -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"