Skip to content

bpo-37031: Fix PyOS_AfterFork_Child() - #13537

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:signal_main
May 24, 2019
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:signal_main

Conversation

@vstinner

@vstinner vstinner commented May 24, 2019 •

Copy link
Copy Markdown
Member

PyOS_AfterFork_Child(): _PyInterpreterState_DeleteExceptMain() must
be called after _PyRuntimeState_ReInitThreads().

_PyRuntimeState_ReInitThreads() resets interpreters mutex after fork,
mutex used by _PyInterpreterState_DeleteExceptMain().

https://bugs.python.org/issue37031

PyOS_AfterFork_Child(): _PyInterpreterState_DeleteExceptMain() must
be called after _PyRuntimeState_ReInitThreads().

_PyRuntimeState_ReInitThreads() resets interpreters mutex after fork,
mutex used by _PyInterpreterState_DeleteExceptMain().
@vstinner
vstinner merged commit b49858b into python:master May 24, 2019
@vstinner
vstinner deleted the signal_main branch May 24, 2019 13:20
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
PyOS_AfterFork_Child(): _PyInterpreterState_DeleteExceptMain() must
be called after _PyRuntimeState_ReInitThreads().

_PyRuntimeState_ReInitThreads() resets interpreters mutex after fork,
mutex used by _PyInterpreterState_DeleteExceptMain().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants