On Sunday 04 February 2007 13:43, Michel Verbraak wrote:
I was debugging a small program of mine and found that:
- when I do a poll after opening the device, and not doing a read
first, it would always give me a POLLERR instead of a POLLIN.
Example:
videofd=open(/dev/video0,
Hans Verkuil schreef:
On Sunday 04 February 2007 15:23, Michel Verbraak wrote:
Hans Verkuil schreef:
On Sunday 04 February 2007 13:43, Michel Verbraak wrote:
I was debugging a small program of mine and found that:
- when I do a poll after opening the device, and not doing a
Hi,
Michel Verbraak:
Currently my program just reads zero bytes before doing the poll and
this works. And it will also work on a normal file.
That's a reasonable workaround.
However, I would suggest that poll(...,POLLIN) signals the intent to
read from that device sufficiently clearly:
Matthias Urlichs schreef:
Hi,
Michel Verbraak:
Currently my program just reads zero bytes before doing the poll and
this works. And it will also work on a normal file.
That's a reasonable workaround.
However, I would suggest that poll(...,POLLIN) signals the intent to
read from
On Sunday 04 February 2007 16:24, Matthias Urlichs wrote:
Hi,
Michel Verbraak:
Currently my program just reads zero bytes before doing the poll
and this works. And it will also work on a normal file.
That's a reasonable workaround.
However, I would suggest that poll(...,POLLIN) signals