Duplicates the file descriptor.
fn duplicate(&self) -> Result<Self, Errno>
The close on exec flag will automatically be set on the new file descriptor.
close on exec
lrs::fd::FDContainer::duplicate_min