]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Close all sockets before cancelling QEMU migration
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Apr 2011 16:23:13 +0000 (17:23 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 16 May 2011 14:18:22 +0000 (15:18 +0100)
commit2bf92bb829975371e7b580c18d2b3dfbcff405b4
tree962ba9d12e08b0063231c81915c7906535493943
parent74f332468dad3c4926a68fc41c93a4efb10b7233
Close all sockets before cancelling QEMU migration

Cancelling the QEMU migration may cause QEMU to flush pending
data on the migration socket. This may in turn block QEMU if
nothing reads from the other end of the socket. Closing the
socket before cancelling QEMU migration avoids this possible
deadlock.

* src/qemu/qemu_migration.c: Close sockets before cancelling
  migration on failure
src/qemu/qemu_migration.c