Get warning logic right on wakeup socket.
This commit is contained in:
parent
b8b5cc2069
commit
0d8809f0ca
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue