summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-05-17 07:48:10 (GMT)
committerGitHub <noreply@github.com>2023-05-17 07:48:10 (GMT)
commit3ce7d57c8aef98f599bb55d67585a8150ce6d775 (patch)
tree1188e9e757a14c46ae381a03266c125ef12694ab /Misc
parentdece9c06bb0aff150e018ed7975d43e4648bb72e (diff)
downloadcpython-3ce7d57c8aef98f599bb55d67585a8150ce6d775.zip
cpython-3ce7d57c8aef98f599bb55d67585a8150ce6d775.tar.gz
cpython-3ce7d57c8aef98f599bb55d67585a8150ce6d775.tar.bz2
[3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) (#104563)
gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) This fixes several ways file descriptors could be leaked from `subprocess.Popen` constructor during error conditions by opening them later and using a context manager "fds to close" registration scheme to ensure they get closed before returning. --------- (cherry picked from commit 3a4c44bb1e92802db64deec59cf8a68ad3973219) Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com> Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2022-08-27-21-41-41.gh-issue-87474.9X-kxt.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-08-27-21-41-41.gh-issue-87474.9X-kxt.rst b/Misc/NEWS.d/next/Library/2022-08-27-21-41-41.gh-issue-87474.9X-kxt.rst
new file mode 100644
index 0000000..eeb5308
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-08-27-21-41-41.gh-issue-87474.9X-kxt.rst
@@ -0,0 +1 @@
+Fix potential file descriptor leaks in :class:`subprocess.Popen`.