Skip to content

Conversation

@vstinner
Copy link
Member

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

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
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