Function base::sys::unix::pipe

source ·
pub fn pipe(close_on_exec: bool) -> Result<(File, File)>
Expand description

Spawns a pipe pair where the first pipe is the read end and the second pipe is the write end.

If close_on_exec is true, the O_CLOEXEC flag will be set during pipe creation.