Avoid permanently disabled QEMU monitor when UNIX migration fails
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 11 Dec 2009 21:01:14 +0000 (21:01 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 18 Dec 2009 17:26:26 +0000 (11:26 -0600)
commit2a39ec77745c4d70db24e31d3c5197e0ed85f851
treefd86ef39523287296ca4adc82d48d5a8d264ca15
parente9060b958e7d5f3803c4f7ea6468143790c662ff
Avoid permanently disabled QEMU monitor when UNIX migration fails

If a UNIX migration command is attempt to a UNIX socket which does
not exist, then the monitor is suspended, but never resumed. This
prevents any further use of the monitor

* migration-unix.c: Only call migrate_fd_monitor_suspend() once
  connected to the UNIX socket.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
migration-unix.c