There was an error while loading. Please reload this page.
1 parent b94dbd7 commit 1a27501Copy full SHA for 1a27501
2 files changed
Lib/concurrent/futures/process.py
@@ -728,6 +728,8 @@ def shutdown(self, wait=True, *, cancel_futures=False):
728
# objects that use file descriptors.
729
self._executor_manager_thread = None
730
self._call_queue = None
731
+ if self._result_queue is not None and wait:
732
+ self._result_queue.close()
733
self._result_queue = None
734
self._processes = None
735
Misc/NEWS.d/next/Library/2020-04-27-20-27-39.bpo-30966.Xmtlqu.rst
@@ -0,0 +1,2 @@
1
+``Process.shutdown(wait=True)`` of :mod:`concurrent.futures` now closes
2
+explicitly the result queue.
0 commit comments