]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: avoid double close on domain restore
authorEric Blake <eblake@redhat.com>
Wed, 2 Mar 2011 03:59:38 +0000 (20:59 -0700)
committerEric Blake <eblake@redhat.com>
Wed, 2 Mar 2011 15:58:49 +0000 (08:58 -0700)
commit4f805dcdc433dc8799dc8a3b02bce813c3047656
tree4e7b4fb6ca42af3b6ba2c7df1f5b63778b1fbc50
parent6a8ef183bef1fec74590bfde315da9ad0f5007ac
qemu: avoid double close on domain restore

qemudDomainSaveImageStartVM was evil - it closed the incoming fd
argument on some, but not all, code paths, without informing the
caller about that action.  No wonder that this resulted in
double-closes: https://bugzilla.redhat.com/show_bug.cgi?id=672725

* src/qemu/qemu_driver.c (qemudDomainSaveImageStartVM): Alter
signature, to avoid double-close.
(qemudDomainRestore, qemudDomainObjRestore): Update callers.
src/qemu/qemu_driver.c