Skip to content

Optionally allow exceptions from multiprocessing forkserver preload imports to be raised #141860

@gpshead

Description

@gpshead

Feature or enhancement

Proposal:

This is more of a development debugging tool, but the imports done in a child process due to multiprocessing.set_forkserver_preload() have always had their errors silently ignored. In many situations this is desirable, we don't want to break forkserver. But it makes debugging and diagnosis of problems in the forkserver process hard, leading to silently lower performance.

Lets add an optional keyword argument to allow preloads to raise errors. This comes from work done originally in #99515 for issue #98552. PR #141859 is the modern take on this.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions