diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2012-11-15 18:22:23 +0000 |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2012-11-15 18:22:23 +0000 |
commit | 8f7c4b8a8551702a9f718098b6b3eea2e8d88bb0 (patch) | |
tree | bd5e219c1bb07c7743a6f44dc029f563ed00180d | |
parent | 9bd7f22c0505be784bcaad9a3b335dc273b79564 (diff) | |
parent | 021f4c2ecca4e65755fc39b01b7819df8dd9993f (diff) | |
download | cpython-8f7c4b8a8551702a9f718098b6b3eea2e8d88bb0.tar.gz cpython-8f7c4b8a8551702a9f718098b6b3eea2e8d88bb0.zip |
Issue #16481: Merge
-rw-r--r-- | Lib/multiprocessing/forking.py | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/multiprocessing/forking.py b/Lib/multiprocessing/forking.py index fe4ee3348c8..a0b3d68f9fc 100644 --- a/Lib/multiprocessing/forking.py +++ b/Lib/multiprocessing/forking.py @@ -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) diff --git a/Misc/NEWS b/Misc/NEWS index 870b7454d2d..7ffbd7b1351 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -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. |