Skip to content

gh-126688: Reinit import lock after fork#126692

Merged
colesbury merged 3 commits intopython:mainfrom
colesbury:gh-126688-import-lock
Nov 12, 2024
Merged

gh-126688: Reinit import lock after fork#126692
colesbury merged 3 commits intopython:mainfrom
colesbury:gh-126688-import-lock

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Nov 11, 2024

The PyMutex implementation supports unlocking after fork because we clear the list of watiers 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().

Loading
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.

7 participants