From: Juan Quintela Date: Wed, 21 Sep 2011 20:46:36 +0000 (+0200) Subject: migration: set error if select return one error X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~2223^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=875187f19fff4774a1147a1b1efcdd7f72960af3;p=sdk%2Femulator%2Fqemu.git migration: set error if select return one error Signed-off-by: Juan Quintela Reviewed-by: Anthony Liguori --- 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)