|poll()| vs. partial reads from FIFO...




Hi!

----

I'm currently writing a small application which should use |poll()| on
multiple FIFOs (created via /usr/bin/mkfifo) but I am getting a weired
behaviour: The FIFOs are fed from other processes (one FIFO per process)
which never terminate and only write data from time to time into the
FIFOs and the consumer application uses |poll()| to wait for incoming
data.

The (weired) problem is now that if the consumer only reads some data
from a FIFO file descriptor and not all queued data then the |revent|
field for this pollfd entry will return |0| on the following |poll()|
call (even if there are still data queued). Is this the correct
behaviour ?

----

Bye,
Roland

--
__ . . __
(o.\ \/ /.o) roland.mainz@xxxxxxxxxxx
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 7950090
(;O/ \/ \O;)
.