diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2012-11-15 18:16:35 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2012-11-15 18:16:35 (GMT) |
commit | 021f4c2ecca4e65755fc39b01b7819df8dd9993f (patch) | |
tree | bbc2c8080093d698addfe3b358fb4b82b0ca7e6e /Lib/multiprocessing | |
parent | e2cf03e499c64fc51a46356169642add4890f33e (diff) | |
download | cpython-021f4c2ecca4e65755fc39b01b7819df8dd9993f.zip cpython-021f4c2ecca4e65755fc39b01b7819df8dd9993f.tar.gz cpython-021f4c2ecca4e65755fc39b01b7819df8dd9993f.tar.bz2 |
Issue #16481: multiprocessing no longer leaks process handles on Windows.
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r-- | Lib/multiprocessing/forking.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/multiprocessing/forking.py b/Lib/multiprocessing/forking.py index af6580d..c5501a2 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) |