SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-87474: Fix file descriptor leaks in subprocess.Popen (#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.

---------

Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
C
cptpcrd committed
3a4c44bb1e92802db64deec59cf8a68ad3973219
Parent: 20e994c
Committed by GitHub <noreply@github.com> on 5/16/2023, 8:23:53 PM