Re: [ivtv-devel] [POSSIBLE BUG] poll after open without read first always returns POLLERR.

2007-02-04 Thread Hans Verkuil
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,

Re: [ivtv-devel] [POSSIBLE BUG] poll after open without read first always returns POLLERR.

2007-02-04 Thread Michel Verbraak
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

Re: [ivtv-devel] [POSSIBLE BUG] poll after open without read first always returns POLLERR.

2007-02-04 Thread Matthias Urlichs
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:

Re: [ivtv-devel] [POSSIBLE BUG] poll after open without read first always returns POLLERR.

2007-02-04 Thread Michel Verbraak
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

Re: [ivtv-devel] [POSSIBLE BUG] poll after open without read first always returns POLLERR.

2007-02-04 Thread Hans Verkuil
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