From 02a08fef079469c005d48fe2d181f0e0eb5752ae Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 1 Aug 2012 13:42:47 -0300 Subject: net: inet_connect(), inet_connect_opts(): add in_progress argument It's used to indicate the special case where a valid file-descriptor is returned (ie. success) but the connection can't be completed w/o blocking. This is needed because QERR_SOCKET_CONNECT_IN_PROGRESS is not treated like an error and a future commit will drop it. Signed-off-by: Luiz Capitulino Reviewed-by: Markus Armbruster --- migration-tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'migration-tcp.c') diff --git a/migration-tcp.c b/migration-tcp.c index 440804db75..18944a41a3 100644 --- a/migration-tcp.c +++ b/migration-tcp.c @@ -86,7 +86,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, errp); + s->fd = inet_connect(host_port, false, NULL, errp); if (!error_is_set(errp)) { migrate_fd_connect(s); -- cgit v1.2.1