On Sun, 2 Dec 2001, Tim Goetze wrote: > On Dec 1 Abramo Bagnara wrote: > > >Tim Goetze wrote: > >> > >> Abramo Bagnara wrote: > >> > >> >Don't make this mistake: poll *have* to return immediately in *all* > >> >cases where to wait is useless (i.e. when no non-user driven event may > >> >happen). > >> > > >> >This is the rule you need to remember. > >> > >> ok. here's a rule simple enough for me to remember :) but should poll in > >> this case, as well as when polling a linked stream, not return an error? > > > >So it does: it set POLLERR in revents. > > oops my bad. i must've blindly copied some example code ;)
There was also an error in alsa-lib's poll_descriptors routines where POLLERR was not set to the events member of 'struct pollfd'. It was fixed recently in 0.9.0beta10.. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> SuSE Linux http://www.suse.com ALSA Project http://www.alsa-project.org _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel