8000 bpo-44422: Fix threading.enumerate() reentrant call by vstinner · Pull Request #26727 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-44422: Fix threading.enumerate() reentrant call #26727

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

Merged
merged 3 commits into from
Jun 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix _after_fork()
Issue spotted by Irit.
  • Loading branch information
vstinner committed Jun 15, 2021
commit 20a0d9ae3a7afd03497352c0940e311303c3071b
2 changes: 1 addition & 1 deletion Lib/threading.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ def _after_fork():
# by another (non-forked) thread. http://bugs.python.org/issue874900
global _active_limbo_lock, _main_thread
global _shutdown_locks_lock, _shutdown_locks
_active_limbo_lock = _allocate_lock()
_active_limbo_lock = RLock()

# fork() only copied the current thread; clear references to others.
new_active = {}
Expand Down
0