summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-07-14 23:28:16 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2002-07-14 23:28:16 (GMT)
commit155adbdcbb18a8eb66826034bff391f3cb0059a6 (patch)
tree5db1f0d8ed485a592d9daba04c97934347731a7d /Modules/posixmodule.c
parent2f10cb8fa5e67e262c009c9b1a2c99a788fd0ad7 (diff)
downloadcpython-155adbdcbb18a8eb66826034bff391f3cb0059a6.zip
cpython-155adbdcbb18a8eb66826034bff391f3cb0059a6.tar.gz
cpython-155adbdcbb18a8eb66826034bff391f3cb0059a6.tar.bz2
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.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 4d9c93d..8a419c3 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,