[PATCH wayland v2] client: Fully flush during blocking dispatch

Daniel Stone daniel at fooishbar.org
Tue Jan 12 02:01:17 PST 2016


On 12 January 2016 at 04:31, Jonas Ådahl <jadahl at gmail.com> wrote:
> wl_display_flush() may fail with EAGAIN which means that not all data
> waiting in the buffer has been flushed. We later block until there
> data to read, which could mean that we block on input from the
> compositor without having sent out all data from the client. Avoid this
> by fully flushing the socket before starting to wait.
>
> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>

Biting my tongue on a coding-style bikeshed.

Reviewed-by: Daniel Stone <daniels at collabora.com>


More information about the wayland-devel mailing list