From: phk Date: Wed, 5 Mar 2008 13:18:39 +0000 (+0000) Subject: Check EOF as bitflag in kqueue return flags X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecf84448b2ad6c901afce6c70dca06049a3892d2;p=varnish Check EOF as bitflag in kqueue return flags git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2555 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c index 0cb1cbc5..8aa9acc5 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c +++ b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c @@ -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);