s3: Fix bug 8385
authorVolker Lendecke <vl@samba.org>
Mon, 22 Aug 2011 12:16:26 +0000 (14:16 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 25 Aug 2011 17:39:12 +0000 (19:39 +0200)
commit50e30afa608dfdeae8a260730ead9761ed424dad
tree0c8ea814fb1a46bbed4e275af27e7471b63ca828
parent1593654914afacbeb529b64711eedb19edf14bdc
s3: Fix bug 8385

Poll and select behave differently regarding error handling. When doing the
connect(2), we can not rely on poll telling us both readability and writability
upon error. Just always try a second connect(2). At least on Linux it returns 0
when it succeeded.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Aug 25 19:39:12 CEST 2011 on sn-devel-104
lib/async_req/async_sock.c