diff options
author | Luiz Capitulino | 2012-08-01 18:42:47 +0200 |
---|---|---|
committer | Luiz Capitulino | 2012-08-13 18:20:34 +0200 |
commit | 02a08fef079469c005d48fe2d181f0e0eb5752ae (patch) | |
tree | 9de321a2b23b4a7509052a8c5c45f945db09acbf /nbd.c | |
parent | hmp_change(): don't access DeviceEncrypted's data (diff) | |
download | qemu-02a08fef079469c005d48fe2d181f0e0eb5752ae.tar.gz qemu-02a08fef079469c005d48fe2d181f0e0eb5752ae.tar.xz qemu-02a08fef079469c005d48fe2d181f0e0eb5752ae.zip |
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 <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'nbd.c')
-rw-r--r-- | nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ int tcp_socket_outgoing(const char *address, uint16_t port) int tcp_socket_outgoing_spec(const char *address_and_port) { - return inet_connect(address_and_port, true, NULL); + return inet_connect(address_and_port, true, NULL, NULL); } int tcp_socket_incoming(const char *address, uint16_t port) |