Function dup2_stderr

fn dup2_stderr<Fd: std::os::fd::AsFd>(fd: Fd) -> Result<()>

Duplicate fd with Stderr, i.e., Stderr redirection.

Examples

See the example of dup2_stdout()