diff options
author | Eric Blake <eblake@redhat.com> | 2013-04-16 15:50:41 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-17 10:24:24 -0500 |
commit | 4aead69241e010c3cda624084e3872aa9f7dcaef (patch) | |
tree | fa3abd219081c7794e1343ca4522dab51ff5daa3 /migration.c | |
parent | 95e2af98d4edb59780e47da2085ea9133f6466bb (diff) | |
download | qemu-4aead69241e010c3cda624084e3872aa9f7dcaef.tar.gz qemu-4aead69241e010c3cda624084e3872aa9f7dcaef.tar.bz2 qemu-4aead69241e010c3cda624084e3872aa9f7dcaef.zip |
migration: reflect incoming failure to shell
Management apps like libvirt don't know to pay attention to
stderr unless there is a non-zero exit status.
* migration.c (process_incoming_migration_co): Exit with non-zero
status on failure.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-id: 1366149041-626-1-git-send-email-eblake@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration.c b/migration.c index 3b4b467c32..3eb0fad147 100644 --- a/migration.c +++ b/migration.c @@ -99,7 +99,7 @@ static void process_incoming_migration_co(void *opaque) qemu_fclose(f); if (ret < 0) { fprintf(stderr, "load of migration failed\n"); - exit(0); + exit(EXIT_FAILURE); } qemu_announce_self(); DPRINTF("successfully loaded vm state\n"); |