projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76f5933
)
migration: Add buffered_flush error handling
author
Juan Quintela
<quintela@redhat.com>
Mon, 10 Dec 2012 21:29:14 +0000
(22:29 +0100)
committer
Juan Quintela
<quintela@redhat.com>
Thu, 17 Jan 2013 12:54:52 +0000
(13:54 +0100)
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>
migration.c
patch
|
blob
|
history
diff --git
a/migration.c
b/migration.c
index 7ae1d939d67701032851a486c6dc37613f5c421f..17eb27d19913ff93eec11d9f73997083c2c70afe 100644
(file)
--- 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;
}