Skip to content

[3.12] gh-108520: Fix bad fork detection in nested multiprocessing use case (GH-108568) - #108691

Merged
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-add8d45-3.12
Aug 30, 2023
Merged

Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-add8d45-3.12

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 30, 2023 •

Copy link
Copy Markdown
Contributor

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

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

… case (pythonGH-108568)

pythongh-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 add8d45)

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>
@Yhg1s
Yhg1s merged commit 320d398 into python:3.12 Aug 30, 2023
@miss-islington
miss-islington deleted the backport-add8d45-3.12 branch August 30, 2023 21:18
@pitrou

pitrou commented Aug 30, 2023

Copy link
Copy Markdown
Member

Thanks @Yhg1s . I'm sorry for the original regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants