Title: [3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) by miss-islington · Pull Request #104563 · python/cpython · GitHub
Open Graph Title: [3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) by miss-islington · Pull Request #104563 · python/cpython
X Title: [3.11] gh-87474: Fix file descriptor leaks in subprocess.Popen (GH-96351) by miss-islington · Pull Request #104563 · python/cpython
Description: 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 Issue: gh-87474
Open Graph Description: 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" registr...
X Description: 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"...
Opengraph URL: https://github.com/python/cpython/pull/104563
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4af72d1d-6894-d485-07e0-f4d71d556245 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A7DE:81F94:387B:4556:6969F8D5 |
| html-safe-nonce | 39c298643816bcd3100f6dc779b6788b52a4dc0584a2ecf75efacef86e019b9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0RFOjgxRjk0OjM4N0I6NDU1Njo2OTY5RjhENSIsInZpc2l0b3JfaWQiOiIyNDgxNjkwNjE4NzY4ODk4MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d9d75a34fd3b0aca5825faae246fb2a4469c30642842da391e4c238a1965d21b |
| hovercard-subject-tag | pull_request:1353099899 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/104563/checks |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | 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" registr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width