]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-108520: Fix bad fork detection in nested multiprocessing use case (GH-10856...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 30 Aug 2023 21:18:49 +0000 (14:18 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Aug 2023 21:18:49 +0000 (23:18 +0200)
commit320d398262349d4928031142339ad895a052e83c
treec8c77fe80db6f24e5791ee95a0e8936b275bcded
parent420db1027b7f8f1ff13bb62cc0579596e7116fd5
[3.12] gh-108520: Fix bad fork detection in nested multiprocessing use case (GH-108568) (#108691)

gh-108520: Fix bad fork detection in nested multiprocessing use case (GH-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.

---------

(cherry picked from commit add8d45cbe46581b9748909fbbf60fdc8ee8f71e)

Co-authored-by: albanD <desmaison.alban@gmail.com>
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]