9 Jan
2013
9 Jan
'13
6:16 p.m.
2013/1/10 Victor Stinner
A better API is maybe to add a "cloexec" argument to open(), ...
I realized that setting close-on-exec flag is a non trivial problem. There are many ways to set it depending on the function, on the OS, and on the OS version. There is also the difficult question of the "default value". I started to work on a PEP: https://bitbucket.org/haypo/misc/src/tip/python/pep_cloexec.rst Contact me if you would like to contribute. Victor