migration: set error if select return one error
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
fdbecb5d0e
commit
af50945081
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user