diff options
author | Corey Minyard <cminyard@mvista.com> | 2014-10-08 07:11:56 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-10-09 15:36:15 +0200 |
commit | 5179502918d0c230afb50d8b95247de440fccdd5 (patch) | |
tree | a13f4148a4400cdbe43e8ccfbd0808393aa74385 /migration-tcp.c | |
parent | 5748e4c2be4f5c24c691f91328be02a9c4cb3063 (diff) | |
download | qemu-5179502918d0c230afb50d8b95247de440fccdd5.zip qemu-5179502918d0c230afb50d8b95247de440fccdd5.tar.gz qemu-5179502918d0c230afb50d8b95247de440fccdd5.tar.bz2 |
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>
Diffstat (limited to 'migration-tcp.c')
-rw-r--r-- | migration-tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration-tcp.c b/migration-tcp.c index 2e34517..91c9cf3 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -33,12 +33,12 @@ do { } while (0) #endif -static void tcp_wait_for_connect(int fd, void *opaque) +static void tcp_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 { |