Fix bug 231273 - [windows] os.popen doens't kill subprocess when interrupted

Don't pass CREATE_NEW_CONSOLE to CreateProcess(), meaning our child process is in the same "console group" and therefore interrupted by the same Ctrl+C that interrupts the parent.
This commit is contained in:
Mark Hammond 2002-07-14 23:28:16 +00:00
parent 2f10cb8fa5
commit 155adbdcbb

View File

@ -3291,7 +3291,7 @@ _PyPopenCreateProcess(char *cmdstring,
NULL,
NULL,
TRUE,
CREATE_NEW_CONSOLE,
0, /* no new console so Ctrl+C kills child too */
NULL,
NULL,
&siStartInfo,