]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336) ...
authorŁukasz Langa <lukasz@langa.pl>
Wed, 4 Sep 2024 20:41:03 +0000 (22:41 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 20:41:03 +0000 (22:41 +0200)
commit0152431f179e85f582a4c393aa3b99d3918a1109
tree0b8011eedd86b5dfbcfaa991df249353d6aebb1e
parent9290419492be7b4762211853e77d8209e5d492f4
[3.9] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336) (#123688)

HEAD_LOCK is called from _PyEval_ReInitThreads->_PyThreadState_DeleteExcept before _PyRuntimeState_ReInitThreads reinit runtime->interpreters.mutex which might be locked before fork.

(cherry picked from commit 522799a05e3e820339718151ac055af6d864d463)

Co-authored-by: ChuBoning <102216855+ChuBoning@users.noreply.github.com>
Misc/NEWS.d/next/Core_and_Builtins/2024-09-04-18-20-11.gh-issue-112275.W_iMiB.rst [new file with mode: 0644]
Modules/posixmodule.c