Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Aug 30, 2023

Conversation

miss-islington
Copy link
Contributor

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

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
26 checks passed
@miss-islington miss-islington deleted the backport-add8d45-3.12 branch August 30, 2023 21:18
@pitrou
Copy link
Member

pitrou commented Aug 30, 2023

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants