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
{{ message }}
Repository navigation
Use fdwalk() within os.closerange() impl if available #82291
"""On Solaris, we are patching (for many years now) posix_closerange function to use fdwalk to close file descriptors instead of a for loop. While for a long time only Solaris had fdwalk, but if I am not mistaken, some other OSes implement it today as well and as such others might be interested in this as well.
If you will like it, I can create an issue for that. Also, I am not sure whether _fdwalk_close_func needs a clinic part or if configure detection is sufficient this way - I am open to all comments and ideas and can rewrite it as needed ;).
New changeset e20134f by Gregory P. Smith (Jakub Kulík) in branch 'master': bpo-38110: Use fdwalk for os.closerange() when available. (GH-15224) e20134f
Activity
gpshead commentedon Sep 11, 2019
On POSIX platforms that support the fdwalk() API, use it within the os.closerange() implementation.
gpshead commentedon Sep 11, 2019
contribution from Jakub Kulík (see the PR)
gpshead commentedon Sep 11, 2019
"""On Solaris, we are patching (for many years now)
posix_closerangefunction to usefdwalkto close file descriptors instead of a for loop. While for a long time only Solaris hadfdwalk, but if I am not mistaken, some other OSes implement it today as well and as such others might be interested in this as well.If you will like it, I can create an issue for that. Also, I am not sure whether
_fdwalk_close_funcneeds a clinic part or if configure detection is sufficient this way - I am open to all comments and ideas and can rewrite it as needed ;).""" - Jakub
gpshead commentedon Sep 11, 2019
New changeset e20134f by Gregory P. Smith (Jakub Kulík) in branch 'master':
bpo-38110: Use fdwalk for os.closerange() when available. (GH-15224)
e20134f
miss-islington commentedon Sep 12, 2019
New changeset 84eb42e by Miss Islington (bot) in branch '3.8':
bpo-38110: Use fdwalk for os.closerange() when available. (GH-15224)
84eb42e
iritkatriel commentedon Oct 10, 2020
This seems complete, can it be closed?