]> granicus.if.org Git - python/commit
bpo-37031: Fix PyOS_AfterFork_Child() (GH-13537)
authorVictor Stinner <vstinner@redhat.com>
Fri, 24 May 2019 13:20:23 +0000 (15:20 +0200)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 13:20:23 +0000 (15:20 +0200)
commitb49858b4b7b4c9d85ef6946ad020f83e4fa1caa7
tree00d448bec735ee1de48c9cf5ab88ea1720d8f4ae
parentb3a9843cd19039808a812ca11206881c94c64e3b
bpo-37031: Fix PyOS_AfterFork_Child() (GH-13537)

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

_PyRuntimeState_ReInitThreads() resets interpreters mutex after fork,
mutex used by _PyInterpreterState_DeleteExceptMain().
Modules/posixmodule.c