[Python-checkins] cpython: asyncio: Temporary fix by Victor Stinner for issue 19566.
guido.van.rossum
python-checkins at python.org
Wed Nov 13 20:09:08 CET 2013
http://hg.python.org/cpython/rev/8e0eeb4cc8fa
changeset: 87086:8e0eeb4cc8fa
user: Guido van Rossum <guido at dropbox.com>
date: Wed Nov 13 11:08:34 2013 -0800
summary:
asyncio: Temporary fix by Victor Stinner for issue 19566.
files:
Lib/asyncio/unix_events.py | 5 +++--
1 files changed, 3 insertions(+), 2 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
@@ -593,11 +593,12 @@
(O(1) each time a child terminates).
"""
def __init__(self, loop):
- super().__init__(loop)
-
self._lock = threading.Lock()
self._zombies = {}
self._forks = 0
+ # Call base class constructor last because it calls back into
+ # the subclass (set_loop() calls _do_waitpid()).
+ super().__init__(loop)
def close(self):
super().close()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list