On Wed, Oct 01, 2008 at 04:24:17PM +0200, Jean-Marc Lasgouttes wrote:

> I do not know whether read() can return 0, and what that would mean.

When attempting to read from a FIFO, read() returns 0 when:

- no process has the pipe open for writing
  (in this case 0 indicates end-of-file)

or

- some process has the pipe open for writing and O_NDELAY is set
  (in this case 0 means still no data to read)

-- 
Enrico

Reply via email to