The DESCRIPTION section of close_range.2 makes it sound like CLOSE_RANGE_UNSHARE will only unshare the file descriptors that you specified for it to close, but unsharing actually operates at the granularity of the file descriptor table, so any FDs that remained open as well as any opened in the future will be unshared too. Joseph C. Sible