mirror of
https://github.com/python/cpython.git
synced 2024-11-30 05:15:14 +08:00
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:
parent
2f10cb8fa5
commit
155adbdcbb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user