[Python-checkins] commit of r41427 - in python/trunk: . PC

fredrik.lundh@python.org fredrik.lundh at python.org
Sat Nov 12 11:15:15 CET 2005


Author: fredrik.lundh
Date: Sat Nov 12 11:15:14 2005
New Revision: 41427
Modified:
 python/trunk/ (props changed)
 python/trunk/PC/_subprocess.c
Log:
 r858 at spiff: Fredrik | 2005年11月10日 23:40:04 +0100
 #1346547
 
 added basic error checking to the STARTUPINFO code
 in CreateProcess.
 
Modified: python/trunk/PC/_subprocess.c
==============================================================================
--- python/trunk/PC/_subprocess.c	(original)
+++ python/trunk/PC/_subprocess.c	Sat Nov 12 11:15:14 2005
@@ -385,6 +385,9 @@
 	si.hStdOutput = gethandle(startup_info, "hStdOutput");
 	si.hStdError = gethandle(startup_info, "hStdError");
 
+	if (PyErr_Occurred())
+		return NULL;
+
 	if (env_mapping == Py_None)
 		environment = NULL;
 	else {


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /