set_fds_cloexec

Function set_fds_cloexec 

Source
pub fn set_fds_cloexec(minfd: c_int, keep_fds: &[c_int])
Expand description

Identical to close_open_fds(), but sets the FD_CLOEXEC flag on the file descriptors instead of closing them.

This is equivalent to CloseFdsBuilder::new().keep_fds(keep_fds).cloexecfrom(minfd).

See CloseFdsBuilder::cloexecfrom() for more information.