]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Kill processes used for QMP caps probing
authorJiri Denemark <jdenemar@redhat.com>
Tue, 2 Oct 2012 08:59:56 +0000 (10:59 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 2 Oct 2012 11:39:58 +0000 (13:39 +0200)
commit0caccb58f0f2025533834ee050d10cdc89afd052
tree34c737aebba62f326a24898d22a7315e1d617615
parente0316b5ebd85ca7c20db9a3fe8f6062b4b5e051d
qemu: Kill processes used for QMP caps probing

Since libvirt switched to QMP capabilities probing recently, it starts
QEMU process used for this probing with -daemonize, which means
virCommandAbort can no longer reach these processes. As a result of
that, restarting libvirtd will leave several new QEMU processes behind.
Let's use QEMU's -pidfile and use it to kill the process when QMP caps
probing is done.
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_driver.c