From: phk Date: Tue, 17 Jun 2008 10:11:44 +0000 (+0000) Subject: Fix another corner case in teardown of the event manager. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3caa2c331450325b1590e1a160045db75958267a;p=varnish Fix another corner case in teardown of the event manager. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2723 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_event.c b/varnish-cache/bin/varnishd/mgt_event.c index 6577e639..2ce30313 100644 --- a/varnish-cache/bin/varnishd/mgt_event.c +++ b/varnish-cache/bin/varnishd/mgt_event.c @@ -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)