[5713] Fix brown-paper-bag bugs from live-migration patch (Charles Duffy)
Revision: 5713
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5713 Author: aliguori Date: 2008-11-12 22:29:11 +0000 (Wed, 12 Nov 2008)
Log Message:
-----------
Fix brown-paper-bag bugs from live-migration patch (Charles Duffy)
In TCP migration, prevent an endless loop trying to retrieve error status. In exec migration, set the close pointer in the FdMigrationState structure.
Color me embarrassed.
Signed-off-by Charles Duffy <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/migration-exec.c
trunk/migration-tcp.c
Modified: trunk/migration-exec.c
===================================================================
migration-exec.c +1 -0
@@ -85,6 +85,7 @@ s->opaque =qemu_popen (f,"w" ); + s->close = exec_close; s->get_error = file_errno; s->write = file_write; s->mig_state.cancel = migrate_fd_cancel;
Modified: trunk/migration-tcp.c
===================================================================
migration-tcp.c +1 -1
@@ -32,7 +32,7 @@static int socket_errno (FdMigrationState *s) { -return (s->get_error (s)); +return socket_error (); }static int socket_write (FdMigrationState *s,const void * buf,size_t size)