Close_range()
Close_range()
Posted May 23, 2019 14:41 UTC (Thu) by dskoll (subscriber, #1630)Parent article: New system calls: pidfd_open() and close_range()
It would be handy if close_range took another argument of type fd_set * that contained a set of file descriptors you definitely want to keep open. One use case is if a parent process opens a PID file and wants to keep it open in the child / grandchild for locking purposes.
If you don't need this facility, just supply NULL where the fd_set * argument goes.