kernel, which will sometimes report a null kqueue event.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2462
d4fa192b-c00b-0410-8231-
f00ffab90ce4
sp, (unsigned long)kp->data, kp->flags,
(kp->flags & EV_EOF) ? " EOF" : "");
#endif
- assert(sp->fd == kp->ident);
+ spassert(sp->id == kp->ident);
+ spassert(sp->fd == sp->id || sp->fd == -1);
+ if (sp->fd == -1) {
+ VSL(SLT_Debug, sp->id, "%s(): got event 0x%04x on closed fd",
+ __func__, kp->fflags);
+ return;
+ }
if (kp->data > 0) {
i = HTC_Rx(sp->htc);
if (i == 0)