issue #406: parent: close extra_fd on failure too.

issue260
David Wilson 6 years ago
parent b3841317dd
commit 17631b0573

@ -1169,6 +1169,8 @@ class Stream(mitogen.core.Stream):
except Exception:
self.receive_side.close()
self.transmit_side.close()
if extra_fd is not None:
os.close(extra_fd)
self._reap_child()
raise

Loading…
Cancel
Save