[Python-Dev] Inherance of file descriptor and handles on Windows (PEP 446) (original) (raw)

Richard Oudkerk shibturn at gmail.com
Wed Jul 24 01:21:18 CEST 2013


On 23/07/2013 11:45pm, Victor Stinner wrote:

Said differently: the HANDLEFLAGINHERIT flag only has an effect on handles, as indicated in its name. On Windows, filedescriptors are never inherited (are always closed) in child processes. I don't think that it is possible to inherit file descriptors on Windows.

Actually, you can inherit fds if you use os.spawnv() instead of subprocess.Popen().

-- Richard



More information about the Python-Dev mailing list