Skip to content
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

gh-90622: Prevent max_tasks_per_child use with a fork mp_context. #91587

Merged

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Apr 16, 2022

Also defaults to a spawn context when no mp_context is supplied for
safe convenience as that is what most people would otherwise need to
manually specify.

This PR is 1 of 2. The next PR will be the back-portable bugfix one that disables dynamic process spawning when a fork mp_context is in use. (see #90622).

Also defaults to a spawn context when no mp_context is supplied for
safe convenience.
@gpshead gpshead added type-bug An unexpected behavior, bug, or error 3.11 only security fixes labels Apr 16, 2022
@gpshead gpshead marked this pull request as ready for review May 6, 2022 06:29
@gpshead gpshead self-assigned this May 6, 2022
@gpshead gpshead merged commit fa4f0a1 into python:main May 6, 2022
@gpshead gpshead deleted the disallow-dynamic-process-spawn-with-fork branch May 6, 2022 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants