summaryrefslogtreecommitdiff
path: root/src/PollEventPoll.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/PollEventPoll.cc
parente95b8efc6b2e7503de2f13ee82e67205a2eab97e (diff)
Log error when event polling function failed.
Diffstat (limited to 'src/PollEventPoll.cc')
-rw-r--r--src/PollEventPoll.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/PollEventPoll.cc b/src/PollEventPoll.cc
index e5933e24..9d0ddaad 100644
--- a/src/PollEventPoll.cc
+++ b/src/PollEventPoll.cc
@@ -111,6 +111,9 @@ void PollEventPoll::poll(const struct timeval& tv)
}
}
}
+ } else if(res == -1) {
+ int errNum = errno;
+ A2_LOG_INFO(fmt("poll 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