Kaydet (Commit) 4835f17c authored tarafından Guido van Rossum's avatar Guido van Rossum

asyncio: Fix race in subprocess transport, by Victor Stinner.

üst efef9d3f
......@@ -160,9 +160,10 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
transp = _UnixSubprocessTransport(self, protocol, args, shell,
stdin, stdout, stderr, bufsize,
extra=None, **kwargs)
yield from transp._post_init()
watcher.add_child_handler(transp.get_pid(),
self._child_watcher_callback, transp)
yield from transp._post_init()
return transp
def _child_watcher_callback(self, pid, returncode, transp):
......
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