Function pipe

Source
pub fn pipe(nonblocking: bool) -> Result<(Sender, Recver)>
Expand description

Like platform-general pipe(), but allows pipe pairs to be immediately created in nonblocking mode on Linux, eliding a fcntl().

ยงSystem calls

  • pipe2 (Linux)
  • pipe (not Linux)
  • fcntl (not Linux, only if nonblocking is true)