|poll()| vs. partial reads from FIFO...
- From: Roland Mainz <roland.mainz@xxxxxxxxxxx>
- Date: Tue, 09 Oct 2007 11:01:49 +0200
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;)
.
- Follow-Ups:
- Re: |poll()| vs. partial reads from FIFO...
- From: Andreas F. Borchert
- Re: |poll()| vs. partial reads from FIFO...
- Prev by Date: Re: tool to monitor the nic for a longer time?
- Next by Date: Problem getting console on v890 RSC
- Previous by thread: ENOSR on UDP socket creation on Solaris 10 U4
- Next by thread: Re: |poll()| vs. partial reads from FIFO...
- Index(es):