[Python-checkins] python/dist/src/Modules posixmodule.c,2.242,2.243

mhammond@users.sourceforge.net mhammond@users.sourceforge.net
Sun, 14 Jul 2002 16:28:18 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv4838

Modified Files:
	posixmodule.c 
Log Message:
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.

Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.242
retrieving revision 2.243
diff -C2 -d -r2.242 -r2.243
*** posixmodule.c	14 Jul 2002 22:14:18 -0000	2.242
--- posixmodule.c	14 Jul 2002 23:28:16 -0000	2.243
***************
*** 3292,3296 ****
  			  NULL,
  			  TRUE,
! 			  CREATE_NEW_CONSOLE,
  			  NULL,
  			  NULL,
--- 3292,3296 ----
  			  NULL,
  			  TRUE,
! 			  0, /* no new console so Ctrl+C kills child too */
  			  NULL,
  			  NULL,