commit | ec5d3cd533be223248a77a881f584e64f4777646 | [log] [tgz] |
---|---|---|
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | Sat Nov 19 16:19:29 2016 +0100 |
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | Sat Nov 19 16:19:29 2016 +0100 |
tree | cd38bddc404c4154880fd84b192be3cc5e135366 | |
parent | 78ffd6cffacb04bea61bb0ef850d05859ab2dbe4 [diff] [blame] |
Issue #28746: Fix the set_inheritable() file descriptor method on platforms that do not have the ioctl FIOCLEX and FIONCLEX commands
diff --git a/Python/fileutils.c b/Python/fileutils.c index e3bfb0c..6a32c42 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c
@@ -886,7 +886,7 @@ return 0; } - res = fcntl(fd, F_SETFD, flags); + res = fcntl(fd, F_SETFD, new_flags); if (res < 0) { if (raise) PyErr_SetFromErrno(PyExc_OSError);