version 1.18, 2016/01/08 13:09:42 |
version 1.19, 2016/01/08 16:17:31 |
|
|
log_puts("bad state in file_del()\n"); |
log_puts("bad state in file_del()\n"); |
panic(); |
panic(); |
} |
} |
#endif |
#endif |
file_nfds -= f->max_nfds; |
file_nfds -= f->max_nfds; |
f->state = FILE_ZOMB; |
f->state = FILE_ZOMB; |
#ifdef DEBUG |
#ifdef DEBUG |
|
|
if (log_level >= 3) |
if (log_level >= 3) |
clock_gettime(CLOCK_MONOTONIC, &ts0); |
clock_gettime(CLOCK_MONOTONIC, &ts0); |
#endif |
#endif |
revents = (f->state != FILE_ZOMB) ? |
revents = (f->state != FILE_ZOMB) ? |
f->ops->revents(f->arg, pfd) : 0; |
f->ops->revents(f->arg, pfd) : 0; |
if ((revents & POLLHUP) && (f->state != FILE_ZOMB)) |
if ((revents & POLLHUP) && (f->state != FILE_ZOMB)) |
f->ops->hup(f->arg); |
f->ops->hup(f->arg); |
|
|
log_puts("out-of-bounds clock delta\n"); |
log_puts("out-of-bounds clock delta\n"); |
} |
} |
} |
} |
file_ts = ts; |
file_ts = ts; |
|
|
/* |
/* |
* process files that rely on poll |
* process files that rely on poll |