mirror of https://github.com/ericonr/sndio.git
don't call revents on zombified files
This commit is contained in:
parent
4a42e90267
commit
55c6148e0b
|
@ -383,7 +383,8 @@ file_poll(void)
|
|||
#ifdef DEBUG
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts0);
|
||||
#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))
|
||||
f->ops->hup(f->arg);
|
||||
if ((revents & POLLIN) && (f->state != FILE_ZOMB))
|
||||
|
|
Loading…
Reference in New Issue