[−][src]Function nix::unistd::pipe2  
pub fn pipe2(flags: OFlag) -> Result<(RawFd, RawFd)>
Like pipe, but allows setting certain file descriptor flags.
The following flags are supported, and will be set atomically as the pipe is created:
O_CLOEXEC:    Set the close-on-exec flag for the new file descriptors.
O_NONBLOCK:   Set the non-blocking flag for the ends of the pipe.
See also pipe(2)