Commit 36e58a88 authored by Mark Hammond's avatar Mark Hammond

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.
parent c93f9efc
...@@ -3291,7 +3291,7 @@ _PyPopenCreateProcess(char *cmdstring, ...@@ -3291,7 +3291,7 @@ _PyPopenCreateProcess(char *cmdstring,
NULL, NULL,
NULL, NULL,
TRUE, TRUE,
CREATE_NEW_CONSOLE, 0, /* no new console so Ctrl+C kills child too */
NULL, NULL,
NULL, NULL,
&siStartInfo, &siStartInfo,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment