◐ Shell
clean mode source ↗

bpo-33929: multiprocessing: fix handle leak on race condition by vstinner · Pull Request #7921 · python/cpython

@vstinner vstinner changed the title multiprocessing: fix handle leak on race condition bpo-33929: multiprocessing: fix handle leak on race condition

Jun 26, 2018

pitrou

pitrou

pitrou

pitrou

pitrou

pitrou

vstinner

bpo-33929: 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.

@vstinner

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jun 27, 2018
…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 2cc9d21)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

miss-islington added a commit that referenced this pull request

Jun 27, 2018
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 2cc9d21)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

vstinner added a commit that referenced this pull request

Jun 27, 2018

vstinner added a commit that referenced this pull request

Jun 27, 2018

terryjreedy added a commit that referenced this pull request

Jun 27, 2018

terryjreedy added a commit that referenced this pull request

Jun 27, 2018