]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11]GH-112275: Fix HEAD_LOCK deadlock in child process after fork (#112336)
authorChuBoning <102216855+ChuBoning@users.noreply.github.com>
Wed, 4 Sep 2024 17:14:59 +0000 (01:14 +0800)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 17:14:59 +0000 (19:14 +0200)
commit522799a05e3e820339718151ac055af6d864d463
tree207f994cb4d8a26dee45e1ff3e4733d2a285e5e1
parent851821d871e5d26bd154860d202bb653ef02cc47
[3.11]GH-112275: Fix HEAD_LOCK deadlock in child process after fork (#112336)

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

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
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