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.13] gh-126688: Reinit import lock after fork (GH-126692) #126765

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 12, 2024

The PyMutex implementation supports unlocking after fork because we
clear the list of waiters in parking_lot.c. This doesn't work as well
for _PyRecursiveMutex because on some systems, such as SerenityOS, the
thread id is not preserved across fork().
(cherry picked from commit 5610860)

Co-authored-by: Sam Gross colesbury@gmail.com

The PyMutex implementation supports unlocking after fork because we
clear the list of waiters in parking_lot.c. This doesn't work as well
for _PyRecursiveMutex because on some systems, such as SerenityOS, the
thread id is not preserved across fork().
(cherry picked from commit 5610860)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@colesbury colesbury enabled auto-merge (squash) November 12, 2024 21:38
@colesbury colesbury merged commit 13fe8f9 into python:3.13 Nov 12, 2024
38 checks passed
oskar-skog added a commit to oskar-skog/serenity that referenced this pull request Nov 12, 2024
oskar-skog added a commit to oskar-skog/serenity that referenced this pull request Nov 12, 2024
nico pushed a commit to SerenityOS/serenity that referenced this pull request Nov 13, 2024
python/cpython#126765

Closes #25263

Make sure to revert this commit before updating Python.
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.

2 participants