]> err.no Git - varnish/commitdiff
Fix another corner case in teardown of the event manager.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jun 2008 10:11:44 +0000 (10:11 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 17 Jun 2008 10:11:44 +0000 (10:11 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2723 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_event.c

index 6577e6396db57cedeea0815f59fdc3cf6a55cae0..2ce303133ff9e31322c103d729c70796f46cdd25 100644 (file)
@@ -381,6 +381,8 @@ ev_compact_pfd(struct evbase *evb)
                DBG(evb, "...[%d] fd = %d\n", u, p->fd);
                if (p->fd >= 0)
                        continue;
+               if (u == evb->lpfd - 1)
+                       break;
                lfd = evb->pfd[evb->lpfd - 1].fd;
                VTAILQ_FOREACH(ep, &evb->events, __list)
                        if (ep->fd == lfd)