changeset: 105186:2fb2e3dc450e branch: 3.6 parent: 105183:a0a3dab4ed66 user: Xavier de Gaye date: Sat Nov 19 16:19:29 2016 +0100 files: Misc/NEWS Python/fileutils.c description: Issue #28746: Fix the set_inheritable() file descriptor method on platforms that do not have the ioctl FIOCLEX and FIONCLEX commands diff -r a0a3dab4ed66 -r 2fb2e3dc450e Misc/NEWS --- a/Misc/NEWS Fri Nov 18 10:41:28 2016 -0800 +++ b/Misc/NEWS Sat Nov 19 16:19:29 2016 +0100 @@ -10,6 +10,9 @@ 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 -r a0a3dab4ed66 -r 2fb2e3dc450e Python/fileutils.c --- a/Python/fileutils.c Fri Nov 18 10:41:28 2016 -0800 +++ b/Python/fileutils.c Sat Nov 19 16:19:29 2016 +0100 @@ -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);