Issue #16481: Merge

This commit is contained in:
Richard Oudkerk 2012-11-15 18:22:23 +00:00
commit 8f7c4b8a85
2 changed files with 3 additions and 0 deletions

View File

@ -233,6 +233,7 @@ else:
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)

View File

@ -127,6 +127,8 @@ Core and Builtins
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.