diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-20 15:22:42 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-03-20 15:22:42 +0900 |
| commit | 87ca37ea480b5bcc977c64cb3425aa3c8beb0b0e (patch) | |
| tree | 2569a0fab6c79f071c701ca38d94638a66ff2135 /src/KqueueEventPoll.cc | |
| parent | e95b8efc6b2e7503de2f13ee82e67205a2eab97e (diff) | |
Log error when event polling function failed.
Diffstat (limited to 'src/KqueueEventPoll.cc')
| -rw-r--r-- | src/KqueueEventPoll.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KqueueEventPoll.cc b/src/KqueueEventPoll.cc index 8e30440d..688bc91f 100644 --- a/src/KqueueEventPoll.cc +++ b/src/KqueueEventPoll.cc @@ -133,8 +133,10 @@ void KqueueEventPoll::poll(const struct timeval& tv) } p->processEvents(events); } + } else if(res == -1) { + int errNum = errno; + A2_LOG_INFO(fmt("kevent 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 |
