aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2011-09-21 22:46:36 +0200
committerJuan Quintela <quintela@redhat.com>2011-10-20 13:23:51 +0200
commitaf509450816d17b4cbfff673be21b830f05018fc (patch)
treea06041557ac0a9006c45f7f29c44d1c8d55a5cd8
parentfdbecb5d0e6a1caca5b4a732beb68771eacc7736 (diff)
migration: set error if select return one error
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--migration.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/migration.c b/migration.c
index 260e5b5fc1..a682168688 100644
--- a/migration.c
+++ b/migration.c
@@ -453,6 +453,10 @@ void migrate_fd_wait_for_unfreeze(void *opaque)
ret = select(s->fd + 1, NULL, &wfds, NULL, NULL);
} while (ret == -1 && (s->get_error(s)) == EINTR);
+
+ if (ret == -1) {
+ qemu_file_set_error(s->file);
+ }
}
int migrate_fd_close(void *opaque)