FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) by miss-islington · Pull Request #104563 · python/cpython · GitHub

/ cpython Public

[3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) - #104563

Merged
gpshead merged 1 commit into
python:3.11from
miss-islington:backport-3a4c44b-3.11
May 17, 2023
Merged

[3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351)#104563
gpshead merged 1 commit into
python:3.11from
miss-islington:backport-3a4c44b-3.11

Conversation

miss-islington commented May 16, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

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 3a4c44b)

Co-authored-by: cptpcrd 31829097+cptpcrd@users.noreply.github.com
Co-authored-by: Gregory P. Smith [Google] greg@krypto.org

…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 3a4c44b)

Co-authored-by: cptpcrd <31829097+cptpcrd@users.noreply.github.com>
Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL