-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
3.12only security fixesonly security fixestype-featureA feature request or enhancementA feature request or enhancement
Description
os.fork() in a multi-threaded application is a likely source of deadlocks on many platforms. We should raise a warning when people call os.fork() from a process that we know has other threads running.
This came from discussion in https://discuss.python.org/t/switching-default-multiprocessing-context-to-spawn-on-posix-as-well/21868/, though I believe many of us have pondered doing it in the past.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixestype-featureA feature request or enhancementA feature request or enhancement