]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Save domain status ASAP after creating qemu process
authorJiri Denemark <jdenemar@redhat.com>
Tue, 12 Jul 2011 09:45:16 +0000 (11:45 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 14 Jul 2011 14:10:17 +0000 (16:10 +0200)
commit5169e5ea38126bd2686c04d36b396f9e73a32dab
tree2e415a9749d5834afa343b5b5964f0280b57fe82
parent088473b29f2169d4dabfbc7ccdf085cd964943a3
qemu: Save domain status ASAP after creating qemu process

When creating new qemu process we saved domain status XML only after the
process was fully setup and running. In case libvirtd was killed before
the whole process finished, once libvirtd started again it didn't know
anything about the new process and we end up with an orphaned qemu
process. Let's save the domain status XML as soon as we know the PID so
that libvirtd can kill the process on restart.
src/qemu/qemu_process.c