Message263493
Attached patch is avoids a syscall in os.set_inheritable() if the FD_CLOEXEC flag is already set/cleared.
The change only impacts platforms using fcntl() in _Py_set_inheritable(). Windows has a different implementation, and Linux uses ioctl() for example.
The same "optimization" is used in socket.socket.setblocking(): see the issue #19827. |
|
Date |
User |
Action |
Args |
2016-04-15 13:21:00 | vstinner | set | recipients:
+ vstinner |
2016-04-15 13:21:00 | vstinner | set | messageid: <1460726460.32.0.344896145272.issue26770@psf.upfronthosting.co.za> |
2016-04-15 13:21:00 | vstinner | link | issue26770 messages |
2016-04-15 13:21:00 | vstinner | create | |
|