diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-02 18:21:18 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-23 13:54:56 +0200 |
commit | 43eaae28e0394f8fb80848fb40aa5d28c6360321 (patch) | |
tree | 493754ef3c272334e9ddf10792a5413d2264ee3b /migration-tcp.c | |
parent | f37afb5ab1921f42043b5527a517eef95c36acf8 (diff) |
migration (incoming): add error propagation to fd and exec protocols
And remove the superfluous integer return value.
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'migration-tcp.c')
-rw-r--r-- | migration-tcp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/migration-tcp.c b/migration-tcp.c index 5e54e68360..46f6ac545c 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -111,18 +111,15 @@ out2: close(s); } -int tcp_start_incoming_migration(const char *host_port, Error **errp) +void tcp_start_incoming_migration(const char *host_port, Error **errp) { int s; s = inet_listen(host_port, NULL, 256, SOCK_STREAM, 0, errp); - if (s < 0) { - return -1; + return; } qemu_set_fd_handler2(s, NULL, tcp_accept_incoming_migration, NULL, (void *)(intptr_t)s); - - return 0; } |