From ecf84448b2ad6c901afce6c70dca06049a3892d2 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 5 Mar 2008 13:18:39 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_acceptor_kqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5