aboutsummaryrefslogtreecommitdiffstats
path: root/svcscan.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-12-02 02:47:02 +0100
committerMarius Halden <marius.h@lden.org>2015-12-02 02:47:02 +0100
commit98f591956e853da6e305db0247b20a3821725cd5 (patch)
treefdb44220df7ad609bdc205e242f20014f4c20afa /svcscan.c
parentfa9bee2fa3c44d9f03e7554da03545dade962c78 (diff)
downloadsvcmon-98f591956e853da6e305db0247b20a3821725cd5.tar.gz
svcmon-98f591956e853da6e305db0247b20a3821725cd5.tar.bz2
svcmon-98f591956e853da6e305db0247b20a3821725cd5.tar.xz
Mostly additions to the svcsupervise mainloop
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) {