[issue38110] Use fdwalk() within os.closerange() impl if available

Gregory P. Smith report at bugs.python.org
Wed Sep 11 11:11:10 EDT 2019


Gregory P. Smith <greg at krypto.org> added the comment:

"""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 ;).

""" - Jakub

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38110>
_______________________________________


More information about the Python-bugs-list mailing list