[PATCH xserver 10/20] kdrive/ephyr: Use NotifyFd for XCB connection input [v2]

Keith Packard keithp at keithp.com
Fri Nov 13 07:10:00 PST 2015


Uli Schlachter <psychon at znc.in> writes:

> If "something" uses xcb (even just sending a request is enough, doesn't have to
> be waiting for a reply), xcb could read an event from its FD and append it to
> its internal queue. At this point there is a pending event in the queue, but the
> socket isn't marked readable. With this change, the event won't be removed from
> the queue.

So, if we check for events before going to sleep (in the block handler),
that should be sufficient to catch this I think?

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20151113/4ce7882c/attachment.sig>


More information about the xorg-devel mailing list