From 155adbdcbb18a8eb66826034bff391f3cb0059a6 Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Sun, 14 Jul 2002 23:28:16 +0000 Subject: [PATCH] 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. --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 4d9c93d5927..8a419c3ad80 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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,