]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: make sure capability probing process can start
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 9 Oct 2014 06:18:33 +0000 (08:18 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 3 Nov 2014 15:43:23 +0000 (16:43 +0100)
commit0ed1b55b20300e0ea53925349d918935c2114bf2
tree90f441178b7b9ceb6dddae6abce3c4bb4ded4dd7
parentd1fd086eb41d5505b7dc595abbf6027b9428071b
qemu: make sure capability probing process can start

When daemon is killed right in the middle of probing a qemu binary for
its capabilities, the qemu process is left running.  Next time the
daemon is starting, it cannot start the probing qemu process because the
one that's already running does have the pidfile flock()'d.

Reported-by: Wang Yufei <james.wangyufei@huawei.com>
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_capabilities.c