diff options
Diffstat (limited to 'migration-exec.c')
-rw-r--r-- | migration-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration-exec.c b/migration-exec.c index b7b1055e88..626b648634 100644 --- a/migration-exec.c +++ b/migration-exec.c @@ -50,7 +50,7 @@ static int exec_close(MigrationState *s) ret = qemu_fclose(s->opaque); s->opaque = NULL; s->fd = -1; - if (ret != -1 && + if (ret >= 0 && WIFEXITED(ret) && WEXITSTATUS(ret) == 0) { ret = 0; |