[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 200/264: mqttd: s/errno/SOCKERRNO
From: |
gnunet |
Subject: |
[gnurl] 200/264: mqttd: s/errno/SOCKERRNO |
Date: |
Thu, 30 Apr 2020 16:08:23 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit de2126b1821fecbc1f66715714cb34c5c2d14ec4
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Apr 15 15:48:38 2020 +0200
mqttd: s/errno/SOCKERRNO
To behave proper on Windows
Reported-by: Gisle Vanem
Bug:
https://github.com/curl/curl/commit/5e855bbd18f84a02c951be7cac6188276818cdac#r38507132
Closes #5241
---
tests/server/mqttd.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/tests/server/mqttd.c b/tests/server/mqttd.c
index 435df69a1..d9ad5923e 100644
--- a/tests/server/mqttd.c
+++ b/tests/server/mqttd.c
@@ -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;
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 193/264: KNOWN_BUGS: Add entry 'Blocking socket operations', (continued)
- [gnurl] 193/264: KNOWN_BUGS: Add entry 'Blocking socket operations', gnunet, 2020/04/30
- [gnurl] 215/264: runtests: dummy init the ports variables to avoid warnings, gnunet, 2020/04/30
- [gnurl] 216/264: src: Remove C99 constructs to ensure C89 compliance, gnunet, 2020/04/30
- [gnurl] 252/264: smtp: set auth correctly, gnunet, 2020/04/30
- [gnurl] 250/264: libssh: avoid options override by configuration files, gnunet, 2020/04/30
- [gnurl] 191/264: sockfilt: fix broken pipe on Windows to be ready in select_ws, gnunet, 2020/04/30
- [gnurl] 224/264: mqtt: improve the state machine, gnunet, 2020/04/30
- [gnurl] 219/264: add more alt-svc test coverage, gnunet, 2020/04/30
- [gnurl] 218/264: test1247: use http server to get the port number set, gnunet, 2020/04/30
- [gnurl] 246/264: tests: make runtests check that disabled tests exists, gnunet, 2020/04/30
- [gnurl] 200/264: mqttd: s/errno/SOCKERRNO,
gnunet <=
- [gnurl] 201/264: appveyor: add Unicode winbuild jobs, gnunet, 2020/04/30
- [gnurl] 199/264: buildconf: use find -execdir instead, remove -print and the ares files, gnunet, 2020/04/30
- [gnurl] 197/264: copyright: bump the copyright year range, gnunet, 2020/04/30
- [gnurl] 202/264: libssh: Use new ECDSA key types to check known hosts, gnunet, 2020/04/30
- [gnurl] 198/264: buildconf: avoid using tempfile when removing files, gnunet, 2020/04/30
- [gnurl] 256/264: copyright updates: adjust year ranges, gnunet, 2020/04/30
- [gnurl] 255/264: CI: do not include */ci branches in PR builds, gnunet, 2020/04/30
- [gnurl] 254/264: runtests: check for the disabled tests relative srcdir, gnunet, 2020/04/30
- [gnurl] 253/264: runtests: revert commenting out a line I did for debugging, gnunet, 2020/04/30
- [gnurl] 261/264: THANKS: synced with the 7.70.0 release, gnunet, 2020/04/30