diff options
author | Orit Wasserman <owasserm@redhat.com> | 2012-09-24 13:11:08 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-09-25 19:05:55 -0500 |
commit | 5db5f44cb4b7f24b9e0efdefc9015e36b7c34881 (patch) | |
tree | aa9d4b99920842446b7d88a28eedf17874533f60 /migration-tcp.c | |
parent | 05bc1d8a4b2f77df8cc9880a552047e30c16f1f8 (diff) | |
download | qemu-5db5f44cb4b7f24b9e0efdefc9015e36b7c34881.zip qemu-5db5f44cb4b7f24b9e0efdefc9015e36b7c34881.tar.gz qemu-5db5f44cb4b7f24b9e0efdefc9015e36b7c34881.tar.bz2 |
Separate inet_connect into inet_connect (blocking) and inet_nonblocking_connect
No need to add non blocking parameters to the blocking inet_connect
add block parameter for inet_connect_opts instead of using QemuOpt "block".
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration-tcp.c')
-rw-r--r-- | migration-tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration-tcp.c b/migration-tcp.c index ac891c3..7f6ad98 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -88,7 +88,7 @@ int tcp_start_outgoing_migration(MigrationState *s, const char *host_port, s->write = socket_write; s->close = tcp_close; - s->fd = inet_connect(host_port, false, &in_progress, errp); + s->fd = inet_nonblocking_connect(host_port, &in_progress, errp); if (error_is_set(errp)) { migrate_fd_error(s); return -1; |