diff options
author | Juan Quintela <quintela@redhat.com> | 2010-06-09 14:10:54 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-22 15:15:51 -0500 |
commit | 8ca5e8011857fc59074f342bec1e8ee69410e522 (patch) | |
tree | 3fc85cd2ef6c03718f58cdd1e2900ccd26dd1126 /vl.c | |
parent | 63729c36924348e494d69adbbdec6fdda339b76b (diff) | |
download | qemu-8ca5e8011857fc59074f342bec1e8ee69410e522.zip qemu-8ca5e8011857fc59074f342bec1e8ee69410e522.tar.gz qemu-8ca5e8011857fc59074f342bec1e8ee69410e522.tar.bz2 |
Exit if incoming migration fails
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2975,7 +2975,12 @@ int main(int argc, char **argv, char **envp) } if (incoming) { - qemu_start_incoming_migration(incoming); + int ret = qemu_start_incoming_migration(incoming); + if (ret < 0) { + fprintf(stderr, "Migration failed. Exit code %s(%d), exiting.\n", + incoming, ret); + exit(ret); + } } else if (autostart) { vm_start(); } |