Skip to main content

close_fds_from

Function close_fds_from 

Source
pub fn close_fds_from(start: i32)
Expand description

Close all file descriptors >= start.

Enumerates /proc/self/fd to avoid EBADF on sparse fd tables. Falls back to a blind 3..1024 scan if /proc/self/fd is unreadable.