[Patch 2/2] libXt: Handle POLLNVAL as an exception

Derek Fawcus dfawcus at cisco.com
Fri Feb 20 09:24:44 PST 2009


On Wed, Feb 18, 2009 at 12:44:28PM -0800, Jeremy Huddleston wrote:
> Add POLLNVAL to the list of exceptions, so it will be popped.
> 
> This is more of a workaround than an actual solution.  For some  
> reason, we're getting POLLNVAL in some cases even through the fd is  
> valid (don't ask me why, I just work here).  This patch adds POLLNVAL  
> to the list of exceptions, so it will be popped, and we can look the  
> other way and keep going pretending like nothing went wrong... which  
> is better than sitting and spinning without ever popping.

I assume the fd in question is neither a device (e.g. pty) nor a named pipe (fifo)?
Since darwin does not support poll on such fds,  and generates POLLNVAL.

DF


More information about the xorg-devel mailing list