]> xenbits.xensource.com Git - libvirt.git/commit
qemu: don't leave shutdown inhibited on attach failure
authorEric Blake <eblake@redhat.com>
Wed, 28 Aug 2013 22:22:46 +0000 (16:22 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 6 Sep 2013 17:44:58 +0000 (11:44 -0600)
commit93e599750e5d5fff49c41a7f91570498a4b6de71
treee7bb5a9c3bed4878d329eb6a9e15dcb2e88ca064
parent2b1ef11c6cb14239feaeb1e426d85377983accb8
qemu: don't leave shutdown inhibited on attach failure

While debugging a failure of 'virsh qemu-attach', I noticed that
we were leaking the count of active domains on failure.  This
means that a libvirtd session that is supposed to quit after
active domains disappear will hang around forever.

* src/qemu/qemu_process.c (qemuProcessAttach): Undo count of
active domains on failure.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_process.c