@@ -3,6 +3,7 @@
#include <stdio.h>
#include <sched.h>
#include <err.h>
+#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -118,6 +119,8 @@ int main(int argc, char *argv[])
nev = kevent(kq, &change, 1, &event, 1, NULL);
if (nev < 0) {
+ if (errno != EINTR)
+ warn("kevent wait:");
/* interrupted */
break;
}