You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
closefrom(3) is available with >=glibc-2.34 on Linux (and Hurd, but, well...)
The check in Python/fileutils.c is a bit too strict, as it hardcodes FreeBSD. This excludes both the aforementioned systems but also other BSDs where I believe it's available.
Activity
pythongh-112970: Wire up closefrom for Linux
pythongh-112970: Wire up closefrom for Linux
thesamesam commentedon Dec 11, 2023
We noticed this when poking at a swarm of
closecalls on an older kernel.gh-112970: Detect and use closefrom() when available (#112969)
erlend-aasland commentedon Dec 12, 2023
Resolved with:
pythongh-112970: Detect and use closefrom() when available (python#11…
pythongh-112970: Detect and use closefrom() when available (python#11…