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

Jonas Ådahl jadahl at gmail.com
Sat Jan 16 00:42:34 PST 2016


On Tue, Jan 12, 2016 at 10:01:17AM +0000, Daniel Stone wrote:
> 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.

For the record, I dug out the shed color, and did some paint shade
changes. This series is now pushed:

   da7b248..c643781  master -> master


Jonas


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


More information about the wayland-devel mailing list