lib/tsocket: fix non-blockging connect() error handling
authorRalph Boehme <slow@samba.org>
Wed, 21 Oct 2015 14:08:00 +0000 (16:08 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 21 Oct 2015 21:13:17 +0000 (23:13 +0200)
commit3e705adcab8404ee6e5f71a38e98eeaca29a5b61
tree287e5121cacc53672097704d0722f0522a4394ff
parent41fe3cfcb5fa2441da9180e57255a3b7fa23da12
lib/tsocket: fix non-blockging connect() error handling

Non-blockging connect() either returns immediate success, or -1 with
errno EINPROGESS as indication that the connection is pending. All other
errnos indicate immediate failure.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/tsocket/tsocket_bsd.c