[Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritable
Victor Stinner
victor.stinner at gmail.com
Tue Aug 6 02:59:45 CEST 2013
> 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, pass_fds 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
More information about the Python-Dev
mailing list