From: Guido van Rossum Date: Wed, 13 Nov 2013 19:08:34 +0000 (-0800) Subject: asyncio: Temporary fix by Victor Stinner for issue 19566. X-Git-Tag: v3.4.0b1~290 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82e9f32f17bfff32041d3f3825f1d8fbc5e76929;p=thirdparty%2FPython%2Fcpython.git asyncio: Temporary fix by Victor Stinner for issue 19566. --- diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index f4cf6e7f2ae2..9fced334531f 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -593,11 +593,12 @@ class FastChildWatcher(BaseChildWatcher): (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()