From patchwork Tue Oct 11 10:00:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [10/36] migration: set error if select return one error From: Juan Quintela X-Patchwork-Id: 118911 Message-Id: <25f29b775f9d35250bf876886d303a726a856e6d.1318326683.git.quintela@redhat.com> To: qemu-devel@nongnu.org Date: Tue, 11 Oct 2011 12:00:30 +0200 Signed-off-by: Juan Quintela Reviewed-by: Anthony Liguori --- migration.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/migration.c b/migration.c index 090c925..56c2b1c 100644 --- a/migration.c +++ b/migration.c @@ -457,6 +457,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)