summaryrefslogtreecommitdiff
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-19 16:19:29 +0100
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-19 16:19:29 +0100
commitec5d3cd533be223248a77a881f584e64f4777646 (patch)
treecd38bddc404c4154880fd84b192be3cc5e135366 /Python/fileutils.c
parent78ffd6cffacb04bea61bb0ef850d05859ab2dbe4 (diff)
downloadcpython-git-ec5d3cd533be223248a77a881f584e64f4777646.tar.gz
Issue #28746: Fix the set_inheritable() file descriptor method on platforms
that do not have the ioctl FIOCLEX and FIONCLEX commands
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r--Python/fileutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index e3bfb0c502..6a32c42c80 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -886,7 +886,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
return 0;
}
- res = fcntl(fd, F_SETFD, flags);
+ res = fcntl(fd, F_SETFD, new_flags);
if (res < 0) {
if (raise)
PyErr_SetFromErrno(PyExc_OSError);