From 80642ed9ec96a200fecad40eab54201ef604402a Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 25 Mar 2018 12:37:11 +0545 Subject: [PATCH] issue #155: core: remove one duplicate set_cloexec(). --- mitogen/core.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 5b1d0b3a..2b11bed1 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1073,7 +1073,6 @@ class IoLogger(BasicStream): self._log = logging.getLogger(name) self._rsock, self._wsock = socket.socketpair() os.dup2(self._wsock.fileno(), dest_fd) - set_cloexec(self._rsock.fileno()) set_cloexec(self._wsock.fileno()) self.receive_side = Side(self, self._rsock.fileno())