Commit 54b3eaa7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

There may be error returns from kevent, don't assert there are none.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@972 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1495b0a5
......@@ -41,7 +41,8 @@ vca_kq_sess(struct sess *sp, int arm)
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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment