Update "now" in kevent ioset back-end.
[srvx.git] / src / ioset-kevent.c
index a88970b059c4155df4fcbc631bb791210e081a7d..5d6f0bbb10463c36634cdbfdb3e455a057986f95 100644 (file)
@@ -106,6 +106,7 @@ ioset_kevent_loop(struct timeval *timeout)
        log_module(MAIN_LOG, LOG_ERROR, "kevent() poll failed: %s", strerror(errno));
        return 1;
     }
+    now = time(NULL) + clock_skew;
 
     /* Process the events we got. */
     for (ii = 0; ii < res; ++ii) {