changeset: 105187:3248782c3176 parent: 105185:7c98768368cb parent: 105186:2fb2e3dc450e user: Xavier de Gaye date: Sat Nov 19 16:20:31 2016 +0100 files: Misc/NEWS description: Issue #28746: Merge 3.6 diff -r 7c98768368cb -r 3248782c3176 Misc/NEWS --- a/Misc/NEWS Sat Nov 19 01:06:37 2016 +0000 +++ b/Misc/NEWS Sat Nov 19 16:20:31 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 7c98768368cb -r 3248782c3176 Python/fileutils.c --- a/Python/fileutils.c Sat Nov 19 01:06:37 2016 +0000 +++ b/Python/fileutils.c Sat Nov 19 16:20:31 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);