threaded-mainloop: Properly initialise m->n_waiting_for_accept to prevent deadlock
commita2418effe7c4bc54390939ccd07dd6227e6cdfa5
authorDaniel T Chen <crimsun@ubuntu.com>
Tue, 5 Jan 2010 02:44:37 +0000 (4 21:44 -0500)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Jan 2010 00:33:46 +0000 (15 01:33 +0100)
treeb04c03932eb3fd3e59be8d010e5ef32a11a676a3
parent66e1a2d05139d7968d41d9f1a88c22093cdd04d5
threaded-mainloop: Properly initialise m->n_waiting_for_accept to prevent deadlock

Compiler optimisations have been seen to initialise
m->n_waiting_for_accept to a positive non-zero value, so the while() in
pa_threaded_mainloop_signal() never proceeds. Fix this by properly
initializing m->n_waiting_for_accept in pa_threaded_mainloop_new().

Patch from Iain Bucław.

https://bugs.launchpad.net/bugs/502992
src/pulse/thread-mainloop.c