diff options
author | Juan Quintela <quintela@redhat.com> | 2012-12-10 22:29:14 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-01-17 13:54:52 +0100 |
commit | f7b67be36d01f8f506dc93213855b31dad17708c (patch) | |
tree | f912411d0a26b33dd6ce07f25cc073627896e403 | |
parent | 76f5933aea281a52149b39a1a78a43565dc9715c (diff) | |
download | hqemu-f7b67be36d01f8f506dc93213855b31dad17708c.zip hqemu-f7b67be36d01f8f506dc93213855b31dad17708c.tar.gz |
migration: Add buffered_flush error handling
Now that we have error handling we can do proper handling of
buffered_flush().
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | migration.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/migration.c b/migration.c index 7ae1d93..17eb27d 100644 --- a/migration.c +++ b/migration.c @@ -757,7 +757,8 @@ static void *buffered_file_thread(void *opaque) /* usleep expects microseconds */ g_usleep((initial_time + BUFFER_DELAY - current_time)*1000); } - if (buffered_flush(s) < 0) { + ret = buffered_flush(s); + if (ret < 0) { break; } |