s3: Fix bug 8385
authorVolker Lendecke <vl@samba.org>
Mon, 22 Aug 2011 12:16:26 +0000 (14:16 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 30 Aug 2011 18:58:19 +0000 (20:58 +0200)
commit45392d05ff059987fb76d3818969177b5a5de6b0
treeb0862a041788a10ec5d59fef3adb8c81178a0d6b
parent225c66ada497449a55d2eed6dfb27cedf3a863c0
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
(cherry picked from commit 50e30afa608dfdeae8a260730ead9761ed424dad)
lib/async_req/async_sock.c