mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 14:23:53 -06:00
qemu-sockets: Add error to non-blocking connect handler
An error value here would be quite handy and more consistent with the rest of the code. Signed-off-by: Corey Minyard <cminyard@mvista.com> [Make sure SO_ERROR value is passed to error_setg_errno. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5748e4c2be
commit
5179502918
5 changed files with 25 additions and 12 deletions
|
@ -33,12 +33,12 @@
|
|||
do { } while (0)
|
||||
#endif
|
||||
|
||||
static void unix_wait_for_connect(int fd, void *opaque)
|
||||
static void unix_wait_for_connect(int fd, Error *err, void *opaque)
|
||||
{
|
||||
MigrationState *s = opaque;
|
||||
|
||||
if (fd < 0) {
|
||||
DPRINTF("migrate connect error\n");
|
||||
DPRINTF("migrate connect error: %s\n", error_get_pretty(err));
|
||||
s->file = NULL;
|
||||
migrate_fd_error(s);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue