diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-19 15:20:31 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-11-19 15:20:31 (GMT) |
commit | 002d61fea7ec026f80bef8b3259681454c1731f0 (patch) | |
tree | 1a639043fa5912d19b5231136b93bcf2c2f15a44 | |
parent | e82338ddab6ee66b845866dfb75e3e01b0bb76d7 (diff) | |
parent | ec5d3cd533be223248a77a881f584e64f4777646 (diff) | |
download | cpython-002d61fea7ec026f80bef8b3259681454c1731f0.zip cpython-002d61fea7ec026f80bef8b3259681454c1731f0.tar.gz cpython-002d61fea7ec026f80bef8b3259681454c1731f0.tar.bz2 |
Issue #28746: Merge 3.6
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Python/fileutils.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -10,6 +10,9 @@ What's New in Python 3.7.0 alpha 1 Core and Builtins ----------------- +- Issue #28746: Fix the set_inheritable() file descriptor method on platforms + that do not have the ioctl FIOCLEX and FIONCLEX commands. + - Issue #26920: Fix not getting the locale's charset upon initializing the interpreter, on platforms that do not have langinfo. 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 @@ 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); |