summaryrefslogtreecommitdiff
path: root/src/EpollEventPoll.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-03-20 15:22:42 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-03-20 15:22:42 +0900
commit87ca37ea480b5bcc977c64cb3425aa3c8beb0b0e (patch)
tree2569a0fab6c79f071c701ca38d94638a66ff2135 /src/EpollEventPoll.cc
parente95b8efc6b2e7503de2f13ee82e67205a2eab97e (diff)
Log error when event polling function failed.
Diffstat (limited to 'src/EpollEventPoll.cc')
-rw-r--r--src/EpollEventPoll.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/EpollEventPoll.cc b/src/EpollEventPoll.cc
index 317ed8a0..4aff1161 100644
--- a/src/EpollEventPoll.cc
+++ b/src/EpollEventPoll.cc
@@ -123,8 +123,11 @@ void EpollEventPoll::poll(const struct timeval& tv)
KSocketEntry* p = reinterpret_cast<KSocketEntry*>(epEvents_[i].data.ptr);
p->processEvents(epEvents_[i].events);
}
+ } else if(res == -1) {
+ int errNum = errno;
+ A2_LOG_INFO(fmt("epoll_wait error: %s",
+ util::safeStrerror(errNum).c_str()));
}
-
#ifdef ENABLE_ASYNC_DNS
// It turns out that we have to call ares_process_fd before ares's
// own timeout and ares may create new sockets or closes socket in