Function uucore::pipes::pipe

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

A wrapper around [nix::unistd::pipe] that ensures the pipe is cleaned up.

Returns two File objects: everything written to the second can be read from the first.