]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tvhpoll: return correct fd in tvhpoll_wait() for linux's epoll
authorJaroslav Kysela <perex@perex.cz>
Sun, 10 Dec 2017 14:55:14 +0000 (15:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Dec 2017 15:00:42 +0000 (16:00 +0100)
src/tvhpoll.c

index 4b8f119f3afb0d63c32e27f9308b9980896fd960..f61a373d400657646ed327a53c135ca0466d95ba 100644 (file)
@@ -198,6 +198,7 @@ int tvhpoll_wait
 #if ENABLE_EPOLL
   nfds = epoll_wait(tp->fd, tp->ev, num, ms);
   for (i = 0; i < nfds; i++) {
+    evs[i].fd       = tp->ev[i].data.fd;
     evs[i].data.u64 = tp->ev[i].data.u64;
     evs[i].events   = 0;
     if (tp->ev[i].events & EPOLLIN)  evs[i].events |= TVHPOLL_IN;