]> err.no Git - varnish/commitdiff
Check EOF as bitflag in kqueue return flags
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Mar 2008 13:18:39 +0000 (13:18 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 5 Mar 2008 13:18:39 +0000 (13:18 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2555 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor_kqueue.c

index 0cb1cbc5f916714565f602243333d4de87a93563..8aa9acc5c87f2e312ae0071269f83d6e9d50c4c1 100644 (file)
@@ -132,7 +132,7 @@ vca_kev(const struct kevent *kp)
                VTAILQ_REMOVE(&sesshead, sp, list);
                vca_handover(sp, i);
                return;
-       } else if (kp->flags == EV_EOF) {
+       } else if (kp->flags & EV_EOF) {
                VTAILQ_REMOVE(&sesshead, sp, list);
                vca_close_session(sp, "EOF");
                SES_Delete(sp);