Re: [PATCH v2] client: Fix handling display->reader_count if poll fails

2013-09-25 Thread Kristian Høgsberg
On Wed, Sep 25, 2013 at 10:39:12AM +0100, Neil Roberts wrote: > In wl_display_dispatch_queue, if poll fails then it would previously > return immediately and leak a reference in display->reader_count. Then > if the application ignores the error and tries to read again it will > block forever. This

[PATCH v2] client: Fix handling display->reader_count if poll fails

2013-09-25 Thread Neil Roberts
In wl_display_dispatch_queue, if poll fails then it would previously return immediately and leak a reference in display->reader_count. Then if the application ignores the error and tries to read again it will block forever. This can happen for example if the poll fails with EINTR which the applicat