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/127808.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-inheritableRichard Oudkerk shibturn at gmail.com
Tue Aug 6 02:48:18 CEST 2013
On 06/08/2013 1:23am, Victor Stinner wrote:
> Each operating system handles the inheritance of file descriptors
> differently. Windows creates non-inheritable file descriptors by
> default, whereas UNIX creates inheritable file descriptors by default.

The Windows API creates non-inheritable *handles* by default.  But the C 
runtime creates inheritable fds by default.

Also the socket library creates sockets with inheritable handles by 
default.  Apparently there isn't a reliable way to make sockets 
non-inheritable because anti-virus/firewall software can interfere:

 
http://stackoverflow.com/questions/12058911/can-tcp-socket-handles-be-set-not-inheritable

-- 
Richard
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