From 0d8809f0caaafadc3f44cf3802cff971768de65c Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Sat, 18 Mar 2017 14:44:07 +0000 Subject: [PATCH] Get warning logic right on wakeup socket. --- net/Socket.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/Socket.hpp b/net/Socket.hpp index 37b9478ca..e88cae8cc 100644 --- a/net/Socket.hpp +++ b/net/Socket.hpp @@ -374,7 +374,7 @@ public: rc = ::write(fd, "w", 1); } while (rc == -1 && errno == EINTR); - if (rc != -1 || errno == EAGAIN || errno == EWOULDBLOCK) + if (rc == -1 && errno != EAGAIN && errno != EWOULDBLOCK) LOG_WRN("wakeup socket #" << fd << " is closd at wakeup? error: " << errno); }