(original) (raw)

changeset: 87086:8e0eeb4cc8fa user: Guido van Rossum guido@dropbox.com date: Wed Nov 13 11:08:34 2013 -0800 files: Lib/asyncio/unix_events.py description: asyncio: Temporary fix by Victor Stinner for issue 19566. diff -r e53984133740 -r 8e0eeb4cc8fa Lib/asyncio/unix_events.py --- a/Lib/asyncio/unix_events.py Thu Nov 14 00:24:31 2013 +1000 +++ b/Lib/asyncio/unix_events.py Wed Nov 13 11:08:34 2013 -0800 @@ -593,11 +593,12 @@ (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() /guido@dropbox.com