STINNER Victor <vstin...@python.org> added the comment:
Linux 5.9 added close_range() syscall that we can use. Linux 5.10 may get a new CLOSE_RANGE_CLOEXEC flag for close_range(). https://lwn.net/Articles/837816/ We may use close_range() rather than iterating on /proc/self/fd/ in user space. It may be faster and safer. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue21627> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com