]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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 20:36:26 +0000 (13:36 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Aug 2023 20:36:26 +0000 (22:36 +0200)
commit385b1952f0817fd302ecebb8644f21b4e04a1462
tree4d314f559702994f0bed85d65550465bc1f6342e
parent6f24420cbf1fe31d212497fea024965b36987307
[3.11] gh-108520: Fix bad fork detection in nested multiprocessing use case (GH-108568) (#108692)

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]