Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Table 44-2 summarizes the operation of read() for pipes and FIFOs, and includes the effect of the O_NONBLOCK flag.
The only difference between blocking and nonblocking reads occurs when no data is present and the write end is open. In this case, a normal read() blocks, while a nonblocking read() fails with the error EAGAIN.