r972 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Sep 12 21:41:52 CEST 2006


Author: phk
Date: 2006-09-12 21:41:52 +0200 (Tue, 12 Sep 2006)
New Revision: 972

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
Log:
There may be error returns from kevent, don't assert there are none.


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2006-09-12 10:12:34 UTC (rev 971)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c	2006-09-12 19:41:52 UTC (rev 972)
@@ -41,7 +41,8 @@
 		return;
 	EV_SET(&ki[nki], sp->fd, EVFILT_READ, arm, 0, 0, sp);
 	if (++nki == NKEV) {
-		AZ(kevent(kq, ki, nki, NULL, 0, NULL));
+		(void)kevent(kq, ki, nki, NULL, 0, NULL);
+		/* XXX: we could check the error returns here */
 		nki = 0;
 	}
 }




More information about the varnish-commit mailing list