Message179388
According to the following script, FD_CLOEXEC is available on:
* Solaris 8
* HP-UX 11
* Unicos 9.0
* Digital UNIX 4.0
* SunOS 4.1.1_U1
* IRIX 6.5
* Linux 2.0 and Linux 2.4 with glibc 2.2.3
* AIX 4.2
(Versions are tested versions, it doesn't mean that the flag didn't exist before)
http://sam.nipl.net/ssh-fast/fsh/fshcompat.py
--
Note: On Windows, it's possible to implement fcntl(fd, F_SETFD, FD_CLOEXEC) using: SetHandleInformation(fd, HANDLE_FLAG_INHERIT, 1). See for example:
https://github.com/tav/pylibs/blob/master/tornado/win32_support.py#L36
I don't know if it's useful since it's possible to set the flag directly when the file is opened (using O_NOINHERIT). |
|
Date |
User |
Action |
Args |
2013-01-08 23:07:15 | vstinner | set | recipients:
+ vstinner, amaury.forgeotdarc, pitrou, christian.heimes, neologix, rosslagerwall, sbt, alexey-smirnov |
2013-01-08 23:07:15 | vstinner | set | messageid: <1357686435.02.0.241406422699.issue16850@psf.upfronthosting.co.za> |
2013-01-08 23:07:15 | vstinner | link | issue16850 messages |
2013-01-08 23:07:14 | vstinner | create | |
|