Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
vstinner wants to merge 1 commit into
python:masterpython/cpython:masterfrom
vstinner:pool_terminateCopy head branch name to clipboard
Closed

bpo-31019: multiprocessing.Pool.terminate() now joins "dead" processes#2849
vstinner wants to merge 1 commit into
python:masterpython/cpython:masterfrom
vstinner:pool_terminateCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jul 24, 2017

Copy link
Copy Markdown
Member

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

@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
Copy Markdown
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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.