]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: avoid closing fd more than once
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 30 May 2012 09:20:44 +0000 (17:20 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 31 May 2012 03:41:46 +0000 (21:41 -0600)
commitb19c236d69278c967d2d8b4aae97ac76213f1c10
treeb162945f44ead824005c4c94284e09251d8f874a
parent746ff701e8727439cac8ca72531d82e5cb7fa129
qemu: avoid closing fd more than once

If we migrate to fd, spec->fwdType is not MIGRATION_FWD_DIRECT,
we will close spec->dest.fd.local in qemuMigrationRun(). So we
should set spec->dest.fd.local to -1 in qemuMigrationRun().

Bug present since 0.9.5 (commit 326176179).
src/qemu/qemu_migration.c