]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemumonitortestutils: Don't crash on non fully initialized test
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jul 2013 14:57:08 +0000 (16:57 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jul 2013 12:25:43 +0000 (14:25 +0200)
commita63a7a5af92e25662e623c51e44984cf4ab9deed
tree8a9297a0351e68fd2de68d82cf960e253b4eb2d3
parent5bf61f38184395de7187218bad25cefe8ea28ded
qemumonitortestutils: Don't crash on non fully initialized test

The qemumonitorjsontest crashed when one of the initialization steps
done before starting the worker thread failed. This patch fixes this by
trying to pthread_join() the thread only after it was created.
tests/qemumonitortestutils.c