[Python-checkins] python/dist/src/PC _subprocess.c,1.2,1.3

astrand at users.sourceforge.net astrand at users.sourceforge.net
Sun Nov 7 15:30:38 CET 2004


Update of /cvsroot/python/python/dist/src/PC
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4566/PC

Modified Files:
	_subprocess.c 
Log Message:
When using shell=True on Windows, don't display a shell window by default. Fixes #1057061.

Index: _subprocess.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/_subprocess.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- _subprocess.c	12 Oct 2004 21:38:22 -0000	1.2
+++ _subprocess.c	7 Nov 2004 14:30:34 -0000	1.3
@@ -377,6 +377,7 @@
 
 	/* note: we only support a small subset of all SI attributes */
 	si.dwFlags = getint(startup_info, "dwFlags");
+	si.wShowWindow = getint(startup_info, "wShowWindow");
 	si.hStdInput = gethandle(startup_info, "hStdInput");
 	si.hStdOutput = gethandle(startup_info, "hStdOutput");
 	si.hStdError = gethandle(startup_info, "hStdError");
@@ -530,6 +531,8 @@
 	defint(d, "STD_ERROR_HANDLE", STD_ERROR_HANDLE);
 	defint(d, "DUPLICATE_SAME_ACCESS", DUPLICATE_SAME_ACCESS);
 	defint(d, "STARTF_USESTDHANDLES", STARTF_USESTDHANDLES);
+	defint(d, "STARTF_USESHOWWINDOW", STARTF_USESHOWWINDOW);
+	defint(d, "SW_HIDE", SW_HIDE);
 	defint(d, "INFINITE", INFINITE);
 	defint(d, "WAIT_OBJECT_0", WAIT_OBJECT_0);
 	defint(d, "CREATE_NEW_CONSOLE", CREATE_NEW_CONSOLE);



More information about the Python-checkins mailing list