diff options
author | Juan Quintela <quintela@redhat.com> | 2011-09-21 23:01:54 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2011-10-20 13:23:52 +0200 |
commit | dcd1d224dfcad1154a516e683ab55ea848497f50 (patch) | |
tree | 41ff40193382ba0ad72dba2116a43c359935ce8e /migration.c | |
parent | af509450816d17b4cbfff673be21b830f05018fc (diff) |
migration: change has_error to contain errno values
We normally already have an errno value. When not, abuse EIO.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration.c b/migration.c index a682168688..d5876a9d93 100644 --- a/migration.c +++ b/migration.c @@ -455,7 +455,7 @@ void migrate_fd_wait_for_unfreeze(void *opaque) } while (ret == -1 && (s->get_error(s)) == EINTR); if (ret == -1) { - qemu_file_set_error(s->file); + qemu_file_set_error(s->file, -s->get_error(s)); } } |