Function close_fds::iter_open_fds_threadsafe[][src]

pub fn iter_open_fds_threadsafe(minfd: c_int) -> FdIter

Notable traits for FdIter

impl Iterator for FdIter type Item = c_int;
Expand description

Equivalent to iter_open_fds(), but behaves more reliably in multithreaded programs (at the cost of decreased performance on some platforms).

This is equivalent to FdIterBuilder::new().threadsafe(true).iter_from(minfd).

See FdIterBuilder::threadsafe() for more information.