diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-11-13 19:08:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-11-13 19:08:34 (GMT) |
commit | 82e9f32f17bfff32041d3f3825f1d8fbc5e76929 (patch) | |
tree | f3c65d86b2a2d2f344e29df9132a2aaf8d43a8a1 /Lib/asyncio | |
parent | d4fdbcc0784b715c0b82ecdf3e9cbbe535f46524 (diff) | |
download | cpython-82e9f32f17bfff32041d3f3825f1d8fbc5e76929.zip cpython-82e9f32f17bfff32041d3f3825f1d8fbc5e76929.tar.gz cpython-82e9f32f17bfff32041d3f3825f1d8fbc5e76929.tar.bz2 |
asyncio: Temporary fix by Victor Stinner for issue 19566.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/unix_events.py | 5 |
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() |