diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-05-17 07:48:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-17 07:48:10 (GMT) |
commit | 3ce7d57c8aef98f599bb55d67585a8150ce6d775 (patch) | |
tree | 1188e9e757a14c46ae381a03266c125ef12694ab /Lib/idlelib/autocomplete_w.py | |
parent | dece9c06bb0aff150e018ed7975d43e4648bb72e (diff) | |
download | cpython-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 'Lib/idlelib/autocomplete_w.py')
0 files changed, 0 insertions, 0 deletions