]> Git Repo - qemu.git/commitdiff
migration: set error if select return one error
authorJuan Quintela <[email protected]>
Wed, 21 Sep 2011 20:46:36 +0000 (22:46 +0200)
committerJuan Quintela <[email protected]>
Thu, 20 Oct 2011 11:23:51 +0000 (13:23 +0200)
Signed-off-by: Juan Quintela <[email protected]>
Reviewed-by: Anthony Liguori <[email protected]>
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)
This page took 0.027021 seconds and 4 git commands to generate.