mirror of
https://github.com/python/cpython.git
synced 2025-11-12 15:09:14 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue