]> err.no Git - varnish/commitdiff
Ignore kevent error return entries
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Sep 2006 10:35:26 +0000 (10:35 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 11 Sep 2006 10:35:26 +0000 (10:35 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@962 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor_kqueue.c

index 3827a060927db99218ca7c1b229ff7a849e44b92..cbc48140bddf46e987f7198906bfc2d720d0bf6a 100644 (file)
@@ -68,8 +68,6 @@ vca_kev(struct kevent *kp)
                        i -= sizeof ss[0];
                }
                assert(i == 0);
-               assert(j > 0);
-               assert(j <= NKEV);
                return;
        }
        CAST_OBJ_NOTNULL(sp, kp->udata, SESS_MAGIC);
@@ -122,6 +120,8 @@ vca_kqueue_main(void *arg)
                assert(n >= 1 && n <= NKEV);
                nki = 0;
                for (kp = ke, j = 0; j < n; j++, kp++) {
+                       if (kp->flags & EV_ERROR)
+                               continue;
                        if (kp->filter == EVFILT_TIMER) {
                                dotimer = 1;
                                continue;