diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2013-08-30 23:32:53 +0200 |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2013-08-30 23:32:53 +0200 |
commit | 9939cc89a4ee54ab50719a597a8b8a0795a691f6 (patch) | |
tree | dc42155f1d67de7d96c2f3938cda274b5e6da11a /Lib/threading.py | |
parent | dee0434e2fb030df448770199627e87c9e06a6bf (diff) | |
download | cpython-git-9939cc89a4ee54ab50719a597a8b8a0795a691f6.tar.gz |
Issue #18418: After fork(), reinit all threads states, not only active ones.
Patch by A. Jesse Jiryu Davis.
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index aaece74e09..c98a006231 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -935,7 +935,7 @@ def _after_fork(): new_active = {} current = current_thread() with _active_limbo_lock: - for thread in _active.values(): + for thread in _enumerate(): # Any lock/condition variable may be currently locked or in an # invalid state, so we reinitialize them. thread._reset_internal_locks() |