[Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritable (original) (raw)
Victor Stinner victor.stinner at gmail.com
Tue Aug 6 02:59:45 CEST 2013
- Previous message: [Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritable
- Next message: [Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Windows, the
subprocess
closes all handles and file descriptors in the child process by default. If at least one standard stream (stdin, stdout or stderr) is replaced (ex: redirected into a pipe), all inheritable handles are inherited in the child process.Summary: =========================== ============= ================== ============= Module FD on UNIX Handles on Windows FD on Windows =========================== ============= ================== ============= subprocess, default STD, passfds none STD
Oh, the summary table is wrong for the "subprocess, default" line: all inheritable handles are inherited if at least one standard stream is replaced.
Victor
- Previous message: [Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritable
- Next message: [Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritable
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]