mirror of
https://github.com/curl/curl.git
synced 2026-07-23 22:57:17 +03:00
mqttd: s/errno/SOCKERRNO
To behave proper on Windows
Reported-by: Gisle Vanem
Bug: 5e855bbd18 (r38507132)
Closes #5241
This commit is contained in:
parent
c712009838
commit
de2126b182
1 changed files with 2 additions and 4 deletions
|
|
@ -643,7 +643,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",
|
||||
|
|
@ -700,9 +700,7 @@ static curl_socket_t sockdaemon(curl_socket_t sock,
|
|||
rc = wait_ms(delay);
|
||||
if(rc) {
|
||||
/* should not happen */
|
||||
error = errno;
|
||||
logmsg("wait_ms() failed with error: (%d) %s",
|
||||
error, strerror(error));
|
||||
logmsg("wait_ms() failed with error: %d", rc);
|
||||
sclose(sock);
|
||||
return CURL_SOCKET_BAD;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue