Issue #16481: multiprocessing no longer leaks process handles on Windows.
This commit is contained in:
parent
e2cf03e499
commit
021f4c2ecc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue