aboutsummaryrefslogtreecommitdiffstats
path: root/svcscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'svcscan.c')
-rw-r--r--svcscan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/svcscan.c b/svcscan.c
index 5286302..7834fdb 100644
--- a/svcscan.c
+++ b/svcscan.c
@@ -445,9 +445,11 @@ main(int argc, char **argv)
}
for (;;) {
- if ((e = kevent(kq, NULL, 0, revt, 6, NULL)) == -1) {
+ e = kevent(kq, NULL, 0, revt, 6, NULL);
+ if (e == -1) {
if (errno != EINTR)
perror("kevent()");
+ continue;
} else if (e > 0) {
for (i = 0; i < e; i++) {
if (revt[i].filter == EVFILT_VNODE && revt[i].ident == dir_fd) {