pub fn dup2_stdout<Fd: AsFd>(fd: Fd) -> Result<()>
Utility function to safely dup2 over stdout (fd 1).
dup2