Function base::sys::unix::descriptor::clone_descriptor
source · pub fn clone_descriptor(
descriptor: &(impl AsRawDescriptor + ?Sized)
) -> Result<SafeDescriptor>
Expand description
Clones descriptor
, returning a new SafeDescriptor
that refers to the same file
descriptor
. The cloned descriptor will have the FD_CLOEXEC
flag set but will not share any
other file descriptor flags with descriptor
.