Select() failing with EAGAIN?
Adam Jackson
ajax at nwnk.net
Wed Aug 4 07:38:30 PDT 2010
On Tue, 2010-08-03 at 17:28 -0300, Fernando Carrijo wrote:
> The Open Group documentation for Select does not mention it failing with EAGAIN.
>
> http://opengroup.org/onlinepubs/007908775/xsh/select.html
>
> Even so, we check for this error after Select is called in WaitForSomething.
>
> Anybody knows why?
commit 85dd8efac1bc0715f03c99d261b1c5d0980623e1
Author: Daniel Stone <daniel at fooishbar.org>
Date: Wed Dec 5 19:36:59 2007 +0000
WaitForSomething: Ignore EAGAIN
If select ever returns EAGAIN, don't bother complaining.
It does look like this has been seen in the wild for Linux systems at
least, where EAGAIN is 11:
http://www.google.com/search?q=%22WaitForSomething():+select:+errno%3D11%22
- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100804/b59cd3de/attachment.pgp>
More information about the xorg-devel
mailing list