migration: set error if select return one error
authorJuan Quintela <quintela@redhat.com>
Wed, 21 Sep 2011 20:46:36 +0000 (22:46 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 20 Oct 2011 11:23:51 +0000 (13:23 +0200)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
migration.c

index 260e5b5fc1fb22183b6d21ebb0a0c8c3bd7da141..a682168688aef984b6cd54e2e84652b52b44e489 100644 (file)
@@ -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)