diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-27 09:59:44 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-27 09:59:44 (GMT) |
| commit | 8b1ebcd7cb3319273ea635df78ebf9ad40171514 (patch) | |
| tree | 6d29dde3588cc1f2d1d6ba421b8bf95639c650a0 /Python/pythonrun.c | |
| parent | 8eac0b8ed56115a1aa315f171b61e7164c6fbeb4 (diff) | |
| download | cpython-8b1ebcd7cb3319273ea635df78ebf9ad40171514.zip cpython-8b1ebcd7cb3319273ea635df78ebf9ad40171514.tar.gz cpython-8b1ebcd7cb3319273ea635df78ebf9ad40171514.tar.bz2 | |
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.
(cherry picked from commit 2cc9d21fffb8146d30e6fb4221e32410ba4b4ab7)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
