Trait method lrs::fd::FDContainer::duplicate

Duplicates the file descriptor.

Syntax

fn duplicate(&self) -> Result<Self, Errno>

Remarks

The close on exec flag will automatically be set on the new file descriptor.

See also