version 1.2, 2012/12/07 08:04:58 |
version 1.3, 2013/02/01 09:06:27 |
|
|
#ifdef DEBUG |
#ifdef DEBUG |
clock_gettime(CLOCK_MONOTONIC, &ts0); |
clock_gettime(CLOCK_MONOTONIC, &ts0); |
#endif |
#endif |
revents = f->ops->revents(f->arg, f->pfd); |
revents = (f->state != FILE_ZOMB) ? |
|
f->ops->revents(f->arg, f->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); |
if ((revents & POLLIN) && (f->state != FILE_ZOMB)) |
if ((revents & POLLIN) && (f->state != FILE_ZOMB)) |