From 3caa2c331450325b1590e1a160045db75958267a Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 17 Jun 2008 10:11:44 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/mgt_event.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.5