SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 2 Python

gh-92301: subprocess: Prefer close_range() to procfs-based fd closing (#92303)

#92301: subprocess: Prefer `close_range()` to procfs-based fd closing.

`close_range()` is much faster for large number of file descriptors, e.g.
4 times faster for 1000 descriptors in a Linux 5.16-based environment.

We prefer close_range() only if it's known to be async-signal-safe.
A
Alexey Izbyshev committed
58573ffba0e4d3c7d6e6712169578e45d2926dbd
Parent: e65e587
Committed by GitHub <noreply@github.com> on 5/5/2022, 4:46:19 PM