Skip to main content

checked_dup

Function checked_dup 

Source
pub fn checked_dup(fd: RawFd) -> Result<OwnedFd>
Expand description

dup(2) that returns an OwnedFd or an error (instead of silently returning -1).