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: except Exception:
self.receive_side.close() self.receive_side.close()
self.transmit_side.close() self.transmit_side.close()
if extra_fd is not None:
os.close(extra_fd)
self._reap_child() self._reap_child()
raise raise

Loading…
Cancel
Save