]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Sep 2024 17:26:29 +0000 (19:26 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 17:26:29 +0000 (19:26 +0200)
commitd3f39cefe721db643957d48316ac98c5e279f0c3
tree8954de74e1cd50341f91612c070cf78e38d23096
parent2e861ac1cd4359463f6a13efd3d3578fce71e5ab
[3.10] gh-112275: Fix HEAD_LOCK deadlock in child process after fork (GH-112336) (#123687)

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>
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