Issue #14881: Allow normal non-main thread to spawn a dummy process
Fix suggested by Itay Brandes
This commit is contained in:
parent
2cc7156515
commit
54454e7dc2
|
@ -70,6 +70,7 @@ class DummyProcess(threading.Thread):
|
|||
def start(self):
|
||||
assert self._parent is current_process()
|
||||
self._start_called = True
|
||||
if hasattr(self._parent, '_children'):
|
||||
self._parent._children[self] = None
|
||||
threading.Thread.start(self)
|
||||
|
||||
|
|
Loading…
Reference in New Issue