summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-04 00:18:20 (GMT)
committerGitHub <noreply@github.com>2022-05-04 00:18:20 (GMT)
commit524d2750e33b4d9c98a562943863abe7fd1236cd (patch)
treeae8ee373781d7851bf8a1adddce2f52da9284ac1 /Misc
parent187cb95088267d235e5ebce510e1783d7939ee0d (diff)
downloadcpython-524d2750e33b4d9c98a562943863abe7fd1236cd.zip
cpython-524d2750e33b4d9c98a562943863abe7fd1236cd.tar.gz
cpython-524d2750e33b4d9c98a562943863abe7fd1236cd.tar.bz2
bpo-47029: Fix BrokenPipeError in multiprocessing.Queue at garbage collection and explicit close (GH-31913)
(cherry picked from commit dfb1b9da8a4becaeaed3d9cffcaac41bcaf746f4) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-04-26-19-01-13.bpo-47029.qkT42X.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-26-19-01-13.bpo-47029.qkT42X.rst b/Misc/NEWS.d/next/Library/2022-04-26-19-01-13.bpo-47029.qkT42X.rst
new file mode 100644
index 0000000..cc05467
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-04-26-19-01-13.bpo-47029.qkT42X.rst
@@ -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.