mirror of
https://github.com/mii443/qemu.git
synced 2025-09-01 14:49:23 +00:00
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>
This commit is contained in:
@ -757,7 +757,8 @@ static void *buffered_file_thread(void *opaque)
|
|||||||
/* usleep expects microseconds */
|
/* usleep expects microseconds */
|
||||||
g_usleep((initial_time + BUFFER_DELAY - current_time)*1000);
|
g_usleep((initial_time + BUFFER_DELAY - current_time)*1000);
|
||||||
}
|
}
|
||||||
if (buffered_flush(s) < 0) {
|
ret = buffered_flush(s);
|
||||||
|
if (ret < 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user