Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82e9f32

Browse files
author
Guido van Rossum
committed
asyncio: Temporary fix by Victor Stinner for issue 19566.
1 parent d4fdbcc commit 82e9f32

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/asyncio/unix_events.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,11 +593,12 @@ class FastChildWatcher(BaseChildWatcher):
593593
(O(1) each time a child terminates).
594594
"""
595595
def __init__(self, loop):
596-
super().__init__(loop)
597-
598596
self._lock = threading.Lock()
599597
self._zombies = {}
600598
self._forks = 0
599+
# Call base class constructor last because it calls back into
600+
# the subclass (set_loop() calls _do_waitpid()).
601+
super().__init__(loop)
601602

602603
def close(self):
603604
super().close()

0 commit comments

Comments
 (0)