X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/0757576591ae7ba84ee28067c04fa7d5490632c4..d613fd78298a9911b7917c06f3ea11de45462e76:/log.c diff --git a/log.c b/log.c index 326a891..95f01b6 100644 --- a/log.c +++ b/log.c @@ -485,9 +485,11 @@ static int log_from_fd_beforepoll(void *sst, struct pollfd *fds, int *nfds_io, { struct fdlog *st=sst; if (!st->finished) { - *nfds_io=1; + BEFOREPOLL_WANT_FDS(1); fds[0].fd=st->fd; fds[0].events=POLLIN; + } else { + BEFOREPOLL_WANT_FDS(0); } return 0; }