mirror of
https://github.com/curl/curl.git
synced 2026-08-02 04:40:28 +03:00
socketpair.c use interim err var in Curl_wakeup_consume
This commit is contained in:
parent
d2687af73a
commit
6ae09171a8
1 changed files with 3 additions and 2 deletions
|
|
@ -339,11 +339,12 @@ CURLcode Curl_wakeup_consume(curl_socket_t socks[2], bool all)
|
|||
if(!rc)
|
||||
break;
|
||||
else if(rc < 0) {
|
||||
err = SOCKERRNO;
|
||||
#ifndef USE_WINSOCK
|
||||
if(SOCKERRNO == SOCKEINTR)
|
||||
if(err == SOCKEINTR)
|
||||
continue;
|
||||
#endif
|
||||
if(SOCK_EWOULDBLOCK_EAGAIN(SOCKERRNO))
|
||||
if(SOCK_EWOULDBLOCK_EAGAIN(err))
|
||||
break;
|
||||
result = CURLE_READ_ERROR;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue