diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-02 14:55:25 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-03 14:55:45 -0500 |
commit | 41ef56e61153d7bd27d34a634633bb51b1c5988d (patch) | |
tree | eea50adb3c58ec6784b0c0ee1385324f0f6a6c1f /savevm.c | |
parent | 4309a79bffce10d6d8de82c5ee403ffa4f45db64 (diff) |
migration: respect exit status with exec:
This patch makes sure that if the exec: process exits with a non-zero return
status, we treat the migration as failed.
This fixes https://bugs.launchpad.net/qemu/+bug/391879
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'savevm.c')
-rw-r--r-- | savevm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -235,9 +235,10 @@ static int stdio_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size) static int stdio_pclose(void *opaque) { QEMUFileStdio *s = opaque; - pclose(s->stdio_file); + int ret; + ret = pclose(s->stdio_file); qemu_free(s); - return 0; + return ret; } static int stdio_fclose(void *opaque) |