]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:51:48 +0000 (16:51 +0200)
committerGitHub <noreply@github.com>
Sat, 31 May 2025 14:51:48 +0000 (14:51 +0000)
commit379c4a2002900fba5d327a2c64fbce60d121c264
treed9c5cee9369ad384fab0d015983e8114e0d85929
parent366a7902a000423988cbcece40f8264797610de6
[3.13] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955) (#134981)

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