mirror of
https://github.com/curl/curl.git
synced 2026-08-02 15:40:32 +03:00
tests/server: replace errno with SOCKERRNO in sockfilt, socksd, sws
To correctly read the winsock2 result code on Windows. Follow-up tode2126b182#5241 Ref:5e855bbd18 (r38507132)Ref: #14854 Closes #16553
This commit is contained in:
parent
d251ecb5c8
commit
adcfd4fb3e
3 changed files with 8 additions and 7 deletions
|
|
@ -740,7 +740,7 @@ static bool incoming(curl_socket_t listenfd)
|
|||
logmsg("signalled to die, exiting...");
|
||||
return FALSE;
|
||||
}
|
||||
} while((rc == -1) && ((error = errno) == EINTR));
|
||||
} while((rc == -1) && ((error = SOCKERRNO) == EINTR));
|
||||
|
||||
if(rc < 0) {
|
||||
logmsg("select() failed with error: (%d) %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue