pipe – create an interprocess channel|
Pipe creates a buffered channel for interprocess I/O communication.
Two file descriptors are returned in fd. Data written to fd
is available for reading from fd and data written to fd
is available for reading from fd.
intro(2), read(2), pipe(3)|
If a read or a write of a pipe is interrupted, some unknown number
of bytes may have been transferred.|
When a read from a pipe returns 0 bytes, it usually means end of file but is indistinguishable from reading the result of an explicit write of zero bytes.