Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec5d3cd

Browse files
author
Xavier de Gaye
committed
Issue #28746: Fix the set_inheritable() file descriptor method on platforms
that do not have the ioctl FIOCLEX and FIONCLEX commands
1 parent 78ffd6c commit ec5d3cd

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 3.6.0 beta 4
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #28746: Fix the set_inheritable() file descriptor method on platforms
14+
that do not have the ioctl FIOCLEX and FIONCLEX commands.
15+
1316
- Issue #26920: Fix not getting the locale's charset upon initializing the
1417
interpreter, on platforms that do not have langinfo.
1518

Python/fileutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
886886
return 0;
887887
}
888888

889-
res = fcntl(fd, F_SETFD, flags);
889+
res = fcntl(fd, F_SETFD, new_flags);
890890
if (res < 0) {
891891
if (raise)
892892
PyErr_SetFromErrno(PyExc_OSError);

0 commit comments

Comments
 (0)