Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phoronix Premium.
Linux 5.9 Set To Bring "Close_Range" System Call - Coordinated With FreeBSD Developers
FreeBSD developers merged their compatible close_range system call all the way back in April 2019 while now for Linux 5.9 in August 2020 this system call is deemed ready for inclusion.
This system call can make it very easy to close all file descriptors of an exec'ed task, allows user-space to avoid having to parse a lot of /proc data and manually closing each FD, etc. The close_range argument can accept a min/max range as well as optional flags.
More details on the close_range system call via this pull request.