r2723 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Jun 17 12:11:45 CEST 2008


Author: phk
Date: 2008-06-17 12:11:44 +0200 (Tue, 17 Jun 2008)
New Revision: 2723

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_event.c
Log:
Fix another corner case in teardown of the event manager.



Modified: trunk/varnish-cache/bin/varnishd/mgt_event.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_event.c	2008-06-17 09:37:44 UTC (rev 2722)
+++ trunk/varnish-cache/bin/varnishd/mgt_event.c	2008-06-17 10:11:44 UTC (rev 2723)
@@ -381,6 +381,8 @@
 		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)




More information about the varnish-commit mailing list