23 Jul
2013
23 Jul
'13
4:21 p.m.
On 23/07/2013 11:45pm, Victor Stinner wrote:
Said differently: the HANDLE_FLAG_INHERIT flag only has an effect on *handles*, as indicated in its name. On Windows, file*descriptors* 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