[Xcb] [Bug 45776] all X programs hanging in libxcb on GNU/kFreeBSD

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 8 12:05:44 PST 2012


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

--- Comment #5 from Uli Schlachter <psychon at znc.in> 2012-02-08 12:05:44 PST ---
(In reply to comment #4)
> I looked up the description of MSG_WAITALL in the recv manpage:
[...]
> This seems entirely wrong for these calls to recv.  Passing MSG_WAITALL
> suggests that we don't want the OS to return until it has filled the entire
> input buffer, whereas we clearly want the OS to return as soon as it has an X
> response for us. 

That's only true for _xcb_in_read() (which I totally missed, whoops).
read_block() would loop until it has read as much data as was asked for anyway.

> That would certainly explain the hangs.

Well, it doesn't hang, it busy-loops with recv() always returning EAGAIN and
this behavior isn't explained yet.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the Xcb mailing list