Skip to content

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 [email protected]

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 <[email protected]>
@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