Topic summary
Dup2

Extracted from the Wikipedia article Dup (system call).
dup2 for input/output redirection
Unix shells use dup2 for input/output redirection. Along with pipe(), it is a tool on which Unix pipes rely.
Topic summary

Extracted from the Wikipedia article Dup (system call).
Unix shells use dup2 for input/output redirection. Along with pipe(), it is a tool on which Unix pipes rely.