Re: [PATCH wayland] client: read_events should return -1 after an error

2014-11-21 Thread Pekka Paalanen
On Mon, 27 Oct 2014 09:19:46 +0100 Marek Chalupa mchqwe...@gmail.com wrote: When a thread is sleeping, waiting until another thread read from the display, it always returns 0. Even when an error occured. In documentation stands: return 0 on success or -1 on error. In case of error errno

[PATCH wayland] client: read_events should return -1 after an error

2014-10-27 Thread Marek Chalupa
When a thread is sleeping, waiting until another thread read from the display, it always returns 0. Even when an error occured. In documentation stands: return 0 on success or -1 on error. In case of error errno will be set accordingly So this is a fix for this. Along with the