bpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)
Fix a race condition in Popen of multiprocessing.popen_spawn_win32. The child process now duplicates the read end of pipe instead of "stealing" it. Previously, the read end of pipe was "stolen" by the child process, but it leaked a handle if the child process had been terminated before it could steal the handle from the parent process.
V
Victor Stinner committed
2cc9d21fffb8146d30e6fb4221e32410ba4b4ab7
Parent: f15f66d
Committed by GitHub <noreply@github.com>
on 6/27/2018, 9:40:24 AM