]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorTestFree: Join worker thread
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Oct 2013 16:20:18 +0000 (18:20 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Oct 2013 13:26:09 +0000 (15:26 +0200)
commit2d670cd42b2d2ae234bc9ab3b625781ec2e28376
tree33f262bc6f196da73c454720b4f80c20afc82924
parent555b042016f2e75d5e08a49906bbad6514db8e03
qemuMonitorTestFree: Join worker thread

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 clearly see worker has run (nobody else sets @running =
false).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemumonitortestutils.c