diff PC/_subprocess.c @ 51985:f632a4e6ee31 3.0

Merged revisions 70142 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r70142 | hirokazu.yamamoto | 2009-03-04 07:41:26 +0900 | 9 lines Merged revisions 70137 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70137 | hirokazu.yamamoto | 2009-03-04 07:18:14 +0900 | 1 line Issue #5179: Fixed subprocess handle leak on failure on windows. ........ ................
author Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>
date Tue, 03 Mar 2009 22:53:46 +0000
parents 87fbbf22adf3
children 91f9168aadd0 a2f5b3b19eb2
line wrap: on
line diff
--- a/PC/_subprocess.c	Mon Mar 02 22:52:58 2009 +0000
+++ b/PC/_subprocess.c	Tue Mar 03 22:53:46 2009 +0000
@@ -84,7 +84,7 @@
 
 	handle = self->handle;
 
-	self->handle = NULL;
+	self->handle = INVALID_HANDLE_VALUE;
 
 	/* note: return the current handle, as an integer */
 	return HANDLE_TO_PYNUM(handle);