Updated ChangeLog.
[ashd.git] / lib / mtio-epoll.c
index 8510c5e..85ee4a1 100644 (file)
@@ -17,6 +17,8 @@
 */
 
 #include <stdlib.h>
+#include <unistd.h>
+#include <time.h>
 #include <fcntl.h>
 #include <string.h>
 #include <sys/epoll.h>
@@ -186,7 +188,7 @@ void ioloop(void)
        nev = epoll_wait(epfd, evr, sizeof(evr) / sizeof(*evr), toval);
        if(nev < 0) {
            if(errno != EINTR) {
-               flog(LOG_CRIT, "ioloop: select errored out: %s", strerror(errno));
+               flog(LOG_CRIT, "ioloop: epoll_wait errored out: %s", strerror(errno));
                /* To avoid CPU hogging in case it's bad, which it
                 * probably is. */
                sleep(1);