[Python-checkins] cpython: asyncio: Fix race in subprocess transport, by Victor Stinner.
guido.van.rossum
python-checkins at python.org
Fri Jan 10 22:30:39 CET 2014
http://hg.python.org/cpython/rev/14161c960900
changeset: 88400:14161c960900
user: Guido van Rossum <guido at python.org>
date: Fri Jan 10 13:28:59 2014 -0800
summary:
asyncio: Fix race in subprocess transport, by Victor Stinner.
files:
Lib/asyncio/unix_events.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
--- a/Lib/asyncio/unix_events.py
+++ b/Lib/asyncio/unix_events.py
@@ -160,9 +160,10 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list