mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
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>
This commit is contained in:
parent
f37afb5ab1
commit
43eaae28e0
7 changed files with 27 additions and 42 deletions
|
@ -111,16 +111,15 @@ out2:
|
|||
close(s);
|
||||
}
|
||||
|
||||
int unix_start_incoming_migration(const char *path, Error **errp)
|
||||
void unix_start_incoming_migration(const char *path, Error **errp)
|
||||
{
|
||||
int s;
|
||||
|
||||
s = unix_listen(path, NULL, 0, errp);
|
||||
if (s < 0) {
|
||||
return -1;
|
||||
return;
|
||||
}
|
||||
|
||||
qemu_set_fd_handler2(s, NULL, unix_accept_incoming_migration, NULL,
|
||||
(void *)(intptr_t)s);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue