diff options
-rw-r--r-- | migration-exec.c | 1 | ||||
-rw-r--r-- | migration-tcp.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/migration-exec.c b/migration-exec.c index 5d0b215fd1..caeed4bbc0 100644 --- a/migration-exec.c +++ b/migration-exec.c @@ -85,6 +85,7 @@ MigrationState *exec_start_outgoing_migration(const char *command, 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; diff --git a/migration-tcp.c b/migration-tcp.c index 100644ba27..6fc1943d8b 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -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) |