]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
asyncio: Temporary fix by Victor Stinner for issue 19566.
authorGuido van Rossum <guido@dropbox.com>
Wed, 13 Nov 2013 19:08:34 +0000 (11:08 -0800)
committerGuido van Rossum <guido@dropbox.com>
Wed, 13 Nov 2013 19:08:34 +0000 (11:08 -0800)
Lib/asyncio/unix_events.py

index f4cf6e7f2ae254d646c8269d76b0c2b3d58b2c13..9fced334531f2475d23ea3411418a385b4908948 100644 (file)
@@ -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()