From 82e9f32f17bfff32041d3f3825f1d8fbc5e76929 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 13 Nov 2013 11:08:34 -0800 Subject: asyncio: Temporary fix by Victor Stinner for issue 19566. --- Lib/asyncio/unix_events.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index f4cf6e7..9fced33 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() -- cgit v0.12