pub fn dup2_stderr<Fd: AsFd>(fd: Fd) -> Result<()>
Utility function to safely dup2 over stderr (fd 2).
dup2