[Python-Dev] PEP 433: Add cloexec argument to functions creating file descriptors

Victor Stinner victor.stinner at gmail.com
Sun Jan 13 01:41:07 CET 2013


> PEP: 433
> Title: Add cloexec argument to functions creating file descriptors
> Status: Draft

The PEP is still a draft. I'm sending it to python-dev to get a first review.

The main question is the choice between the 3 different options:

 * don't set close-on-exec flag by default
 * always set close-on-exec flag
 * add sys.setdefaultcloexec() to leave the choice to the application

Victor


More information about the Python-Dev mailing list