Index: bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- bin/varnishd/cache_acceptor_kqueue.c	(revision 2228)
+++ bin/varnishd/cache_acceptor_kqueue.c	(working copy)
@@ -66,8 +66,8 @@
 	if (sp->fd < 0)
 		return;
 	EV_SET(&ki[nki], sp->fd, EVFILT_READ, arm, 0, 0, sp);
-	if (++nki == NKEV) {
-		assert(kevent(kq, ki, nki, NULL, 0, NULL) <= 0);
+	if (++nki == NKEV || arm == EV_DELETE) {
+		AZ(kevent(kq, ki, nki, NULL, 0, NULL));
 		nki = 0;
 	}
 }
