asyncio: Temporary fix by Victor Stinner for issue 19566.

This commit is contained in:
Guido van Rossum 2013-11-13 11:08:34 -08:00
parent d4fdbcc078
commit 82e9f32f17
1 changed files with 3 additions and 2 deletions

View 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()