forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-47029: Fix BrokenPipeError in multiprocessing.Queue at garbage co…
…llection and explicit close (python#31913)
- Loading branch information
Showing
2 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2022-04-26-19-01-13.bpo-47029.qkT42X.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Always close the read end of the pipe used by :class:`multiprocessing.Queue` | ||
*after* the last write of buffered data to the write end of the pipe to avoid | ||
:exc:`BrokenPipeError` at garbage collection and at | ||
:meth:`multiprocessing.Queue.close` calls. Patch by Géry Ogam. |