Skip to main content

open_descriptors

Function open_descriptors 

Source
pub fn open_descriptors() -> usize
Expand description

How many file descriptors this process holds.

Linux only, through /proc. Elsewhere it reports zero, which the tolerance then trivially accepts — a soak run on another platform still checks tasks and outstanding items, and pretending to a descriptor count that was never taken would be worse than admitting to none.