pub fn dup2_stdin<Fd: AsFd>(fd: Fd) -> Result<()>
Utility function to safely dup2 over stdin (fd 0).
dup2