summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/asyncio/unix_events.py5
1 files 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()