s3: Fix bug 8385
commite5b338313be19767e4ca085bcd345b392c759ff1
authorVolker Lendecke <vl@samba.org>
Mon, 22 Aug 2011 12:16:26 +0000 (22 14:16 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 16 Sep 2011 18:42:09 +0000 (16 20:42 +0200)
tree70c09b85caf1a2c4cdfb125e6f422f9b6631ee19
parent32618377c50405e7b0dabf9b39f4e7a7c885b6b7
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)
(cherry picked from commit 45392d05ff059987fb76d3818969177b5a5de6b0)
lib/async_req/async_sock.c