[Xcb] [PATCH] Handle EAGAIN errno from poll(2) or select(2)

Jeremy Huddleston Sequoia jeremyhu at apple.com
Sun May 29 06:58:19 UTC 2016


Resurrecting this thread as it looks like there actually is a real-world case of this returning EAGAIN ... maybe...  I'm not convinced that there isn't something else going on here, but I wanted to connect the dots:

https://bugs.freedesktop.org/show_bug.cgi?id=92652

> On Aug 23, 2015, at 16:02, Josh Triplett <josh at joshtriplett.org> wrote:
> 
> On Sun, Aug 23, 2015 at 01:51:45AM -0700, Jeremy Huddleston Sequoia wrote:
>> And actually, digging deeper into it, it looks like the implementation
>> in xnu should guarantee that the MALLOC in question never fails (it
>> will block until memory is available), so we should actually never
>> even see the EAGAIN returned for select() case even though it's
>> documented to be a possibility.
> 
> Given that, is it still a good idea to make this change, or should we
> wait until some real system exists where this is a problem?
> 
> - Josh Triplett
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4465 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20160528/7f59c6e7/attachment-0001.bin>


More information about the Xcb mailing list