Web Analytics
Privacy Policy Cookie Policy Terms and Conditions 6.3.4 Blocking Actions on a FIFO next up previous contents
Next: 6.3.5 The Infamous SIGPIPE Up: 6.3 Named Pipes (FIFOs Previous: 6.3.3 FIFO Operations

6.3.4 Blocking Actions on a FIFO

Normally, blocking occurs on a FIFO. In other words, if the FIFO is opened for reading, the process will "block" until some other process opens it for writing. This action works vice-versa as well. If this behavior is undesirable, the O_NONBLOCK flag can be used in an open() call to disable the default blocking action.

In the case with our simple server, we just shoved it into the background, and let it do its blocking there. The alternative would be to jump to another virtual console and run the client end, switching back and forth to see the resulting action.



Converted on:
Fri Mar 29 14:43:04 EST 1996