From: Daniel Stenberg Date: Tue, 10 May 2005 23:02:37 +0000 (+0000) Subject: Hm, this doesn't feel right. The error bits returned from Curl_select() can X-Git-Tag: curl-7_14_0~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a90e33ad713a9a6308b3344a928001f0b1eae645;p=curl Hm, this doesn't feel right. The error bits returned from Curl_select() can be returned at times when we want to ignore them. Test case 160 fails on Linux, so I modify the comparison to check for _only_ the error bit set... --- diff --git a/lib/transfer.c b/lib/transfer.c index ba83a26b0..3c1b52a21 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -287,7 +287,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, fd_write = CURL_SOCKET_BAD; select_res = Curl_select(fd_read, fd_write, 0); - if(select_res & CSELECT_ERR) { + if(select_res == CSELECT_ERR) { failf(data, "select/poll returned error"); return CURLE_SEND_ERROR; }