mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
bpo-47029: Fix BrokenPipeError in multiprocessing.Queue at garbage collection and explicit close (#31913)
This commit is contained in:
parent
f629dcfe83
commit
dfb1b9da8a
2 changed files with 15 additions and 12 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue