[Python-checkins] cpython (merge 3.3 -> default): Issue #16481: Merge

richard.oudkerk python-checkins at python.org
Thu Nov 15 19:24:22 CET 2012


http://hg.python.org/cpython/rev/cb612c5f30cb
changeset: 80445:cb612c5f30cb
parent: 80443:3aa530c2db06
parent: 80444:c574ce78cd61
user: Richard Oudkerk <shibturn at gmail.com>
date: Thu Nov 15 18:22:23 2012 +0000
summary:
 Issue #16481: Merge
files:
 Lib/multiprocessing/forking.py | 1 +
 Misc/NEWS | 2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Lib/multiprocessing/forking.py b/Lib/multiprocessing/forking.py
--- a/Lib/multiprocessing/forking.py
+++ b/Lib/multiprocessing/forking.py
@@ -233,6 +233,7 @@
 self.returncode = None
 self._handle = hp
 self.sentinel = int(hp)
+ util.Finalize(self, _winapi.CloseHandle, (self.sentinel,))
 
 # send information to child
 Popen._tls.process_handle = int(hp)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -127,6 +127,8 @@
 Library
 -------
 
+- Issue #16481: multiprocessing no longer leaks process handles on Windows.
+
 - Issue #12428: Add a pure Python implementation of functools.partial().
 Patch by Brian Thorne.
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

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