mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #28746: Fix the set_inheritable() file descriptor method on platforms
that do not have the ioctl FIOCLEX and FIONCLEX commands
This commit is contained in:
parent
78ffd6cffa
commit
ec5d3cd533
2 changed files with 4 additions and 1 deletions
|
@ -10,6 +10,9 @@ What's New in Python 3.6.0 beta 4
|
||||||
Core and Builtins
|
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
|
- Issue #26920: Fix not getting the locale's charset upon initializing the
|
||||||
interpreter, on platforms that do not have langinfo.
|
interpreter, on platforms that do not have langinfo.
|
||||||
|
|
||||||
|
|
|
@ -886,7 +886,7 @@ set_inheritable(int fd, int inheritable, int raise, int *atomic_flag_works)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = fcntl(fd, F_SETFD, flags);
|
res = fcntl(fd, F_SETFD, new_flags);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
if (raise)
|
if (raise)
|
||||||
PyErr_SetFromErrno(PyExc_OSError);
|
PyErr_SetFromErrno(PyExc_OSError);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue