Commit 6a942528 authored by Richard Oudkerk's avatar Richard Oudkerk

Issue #14881: Allow normal non-main thread to spawn a dummy process

Fix suggested by Itay Brandes
parent 877effc2
......@@ -70,7 +70,8 @@ class DummyProcess(threading.Thread):
def start(self):
assert self._parent is current_process()
self._start_called = True
self._parent._children[self] = None
if hasattr(self._parent, '_children'):
self._parent._children[self] = None
threading.Thread.start(self)
@property
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment