Adam Meily added the comment:

Ok, I can re-implement the patch to meet what you all are looking for. I just 
want to double check that I'm on the same page:

I'll get rid of the lock, because the fix should really be done in the call to 
CreateProcessW. I imagine that I'll be editing Modules/_winapi.c:824. 
Essentially, the fix will include switching _winapi.c to use a STARTUPINFOEX 
structure, and manually passing in the three handles for stdin, stdout, and 
stderr to PROC_THREAD_ATTRIBUTE_HANDLE_LIST.

The one potential problem that I see is that it looks like specifying 
PROC_THREAD_ATTRIBUTE_HANDLE_LIST means that no other handles are inherited, 
even if they are inheritable. Doesn't this break applications that are 
explicitly creating inheritable handles and expecting them to be accessible 
within the subprocess? I could add Windows support for pass_fds, but then 
existing applications would have to be updated to use the argument on Windows.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24909>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to