aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kulik <kulikjak@gmail.com>2021-03-15 08:49:28 +0100
committerSam James <sam@gentoo.org>2021-11-06 01:48:32 +0000
commit7468ff0352072da0c2c7fa5fe6e9f7dd19c3805e (patch)
treeb98e0ac9666df367aad24929b8156301a1cc64db
parentssl: Hard-disable SSLv3 to avoid automagic deps (diff)
downloadcpython-gentoo-3.11.0a2.tar.gz
cpython-gentoo-3.11.0a2.tar.bz2
cpython-gentoo-3.11.0a2.zip
Fix dictionary iteration error in _ExecutorManagerThreadgentoo-3.11.0a2
-rw-r--r--Lib/concurrent/futures/process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/concurrent/futures/process.py b/Lib/concurrent/futures/process.py
index 9904db78c5b..3245d77234e 100644
--- a/Lib/concurrent/futures/process.py
+++ b/Lib/concurrent/futures/process.py
@@ -372,7 +372,7 @@ class _ExecutorManagerThread(threading.Thread):
assert not self.thread_wakeup._closed
wakeup_reader = self.thread_wakeup._reader
readers = [result_reader, wakeup_reader]
- worker_sentinels = [p.sentinel for p in self.processes.values()]
+ worker_sentinels = [p.sentinel for p in self.processes.copy().values()]
ready = mp.connection.wait(readers + worker_sentinels)
cause = None