Re: [libvirt] [PATCH v2 1/5] qemuMonitorTestFree: Join worker thread

2013-10-03 Thread Daniel P. Berrange
On Thu, Oct 03, 2013 at 12:49:33PM +0200, Michal Privoznik wrote: > Join the worker thread no matter if it is running or zombie already. > With current implementation the thread is joined iff @running is true. > However, when worker executes the last line, @running is set to false. > Hence qemuMoni

[libvirt] [PATCH v2 1/5] qemuMonitorTestFree: Join worker thread

2013-10-03 Thread Michal Privoznik
Join the worker thread no matter if it is running or zombie already. With current implementation the thread is joined iff @running is true. However, when worker executes the last line, @running is set to false. Hence qemuMonitorTestFree() won't join it (and free resources) even though we can clearl