]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108520: Fix bad fork detection in nested multiprocessing use case (#108568)
authoralbanD <desmaison.alban@gmail.com>
Wed, 30 Aug 2023 17:07:41 +0000 (13:07 -0400)
committerGitHub <noreply@github.com>
Wed, 30 Aug 2023 17:07:41 +0000 (17:07 +0000)
commitadd8d45cbe46581b9748909fbbf60fdc8ee8f71e
treeeeaffda1c22e7c99be3c23a22d04d6e2866ebd5f
parent2a3926fa51b7264787d5988abf083d8c4328f4ad
gh-108520: Fix bad fork detection in nested multiprocessing use case (#108568)

gh-107275 introduced a regression where a SemLock would fail being passed along nested child processes, as the `is_fork_ctx` attribute would be left missing after the first deserialization.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
Lib/multiprocessing/synchronize.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Core and Builtins/2023-08-30-15-41-47.gh-issue-108520.u0ZGP_.rst [new file with mode: 0644]