diff options
author | Marius Halden <marius.h@lden.org> | 2015-12-02 02:47:02 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-12-02 02:47:02 +0100 |
commit | 98f591956e853da6e305db0247b20a3821725cd5 (patch) | |
tree | fdb44220df7ad609bdc205e242f20014f4c20afa /svcscan.c | |
parent | fa9bee2fa3c44d9f03e7554da03545dade962c78 (diff) | |
download | svcmon-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |