[Python-Dev] fork or exec?

Victor Stinner victor.stinner at gmail.com
Fri Jan 11 00:12:47 CET 2013


2013/1/10 Tres Seaver <tseaver at palladion.com>:
> Why would we wander away from POSIX semantics here?  There are good
> reasons not to close open descriptors (the 'pipe()' syscall, for
> instance), and there is no POSIXy way to ask for them *not* to be closed.

There are different methods to disable the close-on-exec flag.

See os.set_cloexec() function of my PEP draft:
https://bitbucket.org/haypo/misc/src/tip/python/pep_cloexec.rst

Victor


More information about the Python-Dev mailing list