How do I use a named pipe?


To use the pipe, you open it like a normal file, and use read()
and write() just as though it was a plain pipe.



However, the open() of the pipe may block. The following rules
apply:






When reading and writing the FIFO, the same considerations apply as for
regular pipes and sockets, i.e. read() will return EOF when all
writers have closed, and write() will raise SIGPIPE when
there are no readers. If SIGPIPE is blocked or ignored, the call
fails with EPIPE.




[an error occurred while processing this directive]