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

Uli Schlachter psychon at znc.in
Sun May 29 07:39:38 UTC 2016


Am 29.05.2016 um 08:58 schrieb Jeremy Huddleston Sequoia:
> 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

That doesn't sound like resource exhaustion at all (and retrying a failed
xcb_wait_for_event() is pointless, because the connection will be in an error
state after the failure and the following attempts immediately return a failure).

Given the easy reproducability of this, I'd use the Mac equivalent of strace to
figure out what exactly is going on. select()/poll() reproducability failing
sounds more like the WM using KillClient to have the server close the
connection, but since the test program has WM_DELETE_WINDOW...

Cheers,
Uli
-- 
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451


More information about the Xcb mailing list