Skip to content

[3.6] bpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)#7961

Closed
vstinner wants to merge 1 commit into
python:3.6from
vstinner:mp_spawn36
Closed

[3.6] bpo-33929: multiprocessing: fix handle leak on race condition (GH-7921)#7961
vstinner wants to merge 1 commit into
python:3.6from
vstinner:mp_spawn36

Conversation

@vstinner

@vstinner vstinner commented Jun 27, 2018

Copy link
Copy Markdown
Member

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)

https://bugs.python.org/issue33929

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)
@vstinner

Copy link
Copy Markdown
Member Author

Let's not backport this fix to the 3.6 stable branch: #7921 (comment)

@vstinner vstinner closed this Jun 27, 2018
@vstinner vstinner deleted the mp_spawn36 branch June 27, 2018 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants