]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 31 May 2025 14:55:03 +0000 (16:55 +0200)
committerGitHub <noreply@github.com>
Sat, 31 May 2025 14:55:03 +0000 (14:55 +0000)
commitd6f356e1ab5ccdf1faaf6c431a119217d86201d8
tree17956127dd2fd3bb59e9469d1ed61fdbeaa54d72
parent0df99207b3810fa862b2f3444cc7d752f2d3f594
[3.14] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955) (#134980)

gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955)

* Hard-cap max file descriptors in subprocess test fd_status

On some systems, `SC_OPEN_MAX` may return a very large value (i.e. 10**30), leading to the subprocess test timing out (or run forever).
Prevent this situation by applying a hard cap on how many file descriptors are checked.

* Fix typo in usage docstring

s/fd_stats/fd_status/
(cherry picked from commit f58873e4b2b7aad8e3a08a6188c6eb08d0a3001b)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
Lib/test/subprocessdata/fd_status.py