A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-August/127809.html below:

Make newly created file descriptors non-inheritable

[Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritable [Python-Dev] (New) PEP 446: Make newly created file descriptors non-inheritableVictor 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4