Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reword and clarify the NEWS entry.
  • Loading branch information
gpshead authored May 26, 2023
commit 0926f6f1b14e8529fc74833a82cc24253d3e7772
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
Starting new threads and process creation through fork/vfork at interpreter exit is no longer supported, as it can lead to race condition between main Python thread freeing existing thread states and internal :mod:`threading` routines trying to allocate and use state of just created thread or fork/vfork trying to use main thread state in child process.
Starting new threads and process creation through :func:`os.fork` during interpreter
shutdown (such as from :mod:`atexit` handlers) is no longer supported. It can lead
to race condition between the main Python runtime thread freeing thread states while
internal :mod:`threading` routines are trying to allocate and use the state of just
created threads. Or forked children trying to use the mid-shutdown runtime and thread
state in the child process.