[Python-Dev] Set close-on-exec flag by default in SocketServer (original) (raw)
Victor Stinner victor.stinner at gmail.com
Thu Jan 10 03:16:11 CET 2013
- Previous message: [Python-Dev] Set close-on-exec flag by default in SocketServer
- Next message: [Python-Dev] Set close-on-exec flag by default in SocketServer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2013/1/10 Victor Stinner <victor.stinner at gmail.com>:
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
- Previous message: [Python-Dev] Set close-on-exec flag by default in SocketServer
- Next message: [Python-Dev] Set close-on-exec flag by default in SocketServer
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]