Skip to content

bpo-31019: multiprocessing.Pool.terminate() now joins "dead" processes #2849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

bpo-31019: multiprocessing.Pool.terminate() now joins "dead" processes #2849

wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 24, 2017

bpo-31019: Pool.terminate() now also joins "dead" processes even if
their is_alive() method returns false. The change prevents leaking
"dangling" processes.

https://bugs.python.org/issue31019

bpo-31019: Pool.terminate() now also joins "dead" processes even if
their is_alive() method returns false. The change prevents leaking
"dangling" processes.
@mention-bot
Copy link

@Haypo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @benjaminp, @shibturn and @jnoller to be potential reviewers.

@vstinner
Copy link
Member Author

I tried to write an unit test, but it's hard to write a reliable test :-( Once all debug checks will be added to http://bugs.python.org/issue26762 it will be trivial to see the effect of this bug fix.

@vstinner vstinner requested a review from pitrou July 24, 2017 17:53
@vstinner vstinner changed the title multiprocessing.Pool.terminate() joins all processes bpo-31019: multiprocessing.Pool.terminate() joins all processes Jul 24, 2017
@vstinner vstinner changed the title bpo-31019: multiprocessing.Pool.terminate() joins all processes bpo-31019: multiprocessing.Pool.terminate() now joins "dead" processes Jul 24, 2017
@vstinner
Copy link
Member Author

Abandonned in favor of PR 2875 which fixes the root issue.

@vstinner vstinner closed this Jul 26, 2017
@vstinner vstinner deleted the pool_terminate branch July 26, 2017 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants