diff options
Diffstat (limited to 'nuttx/netutils/thttpd/fdwatch.c')
-rw-r--r-- | nuttx/netutils/thttpd/fdwatch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/netutils/thttpd/fdwatch.c b/nuttx/netutils/thttpd/fdwatch.c index 2346d7450..77e1318c3 100644 --- a/nuttx/netutils/thttpd/fdwatch.c +++ b/nuttx/netutils/thttpd/fdwatch.c @@ -285,10 +285,13 @@ int fdwatch(struct fdwatch_s *fw, long timeout_msecs) { /* Is there activity on this descriptor? */ - if (fw->pollfds[i].revents & (POLLIN | POLLOUT | POLLERR | POLLHUP | POLLNVAL)) + if (fw->pollfds[i].revents & (POLLIN | POLLERR | POLLHUP | POLLNVAL)) { /* Yes... save it in a shorter list */ + nvdbg("pollndx: %d fd: %d revents: %04x\n", + i, fw->pollfds[i].fd, fw->pollfds[i].revents); + fw->ready[fw->nactive++] = fw->pollfds[i].fd; if (fw->nactive == ret) { |