The read() in the listening process returns 0 bytes so you know EOF
was reached (the only writer to the pipe has gone). Normally you
close() the pipe and exit(), or re-open() it.
Alternatively open the FIFO in O_RDWR mode in the listening process,
so that there always is one writer (the process itself) and you will
never reach EOF
Mike.
-- Indifference will certainly be the downfall of mankind, but who cares?- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/