Fix: compat poll: add missing empty revents checks
[lttng-tools.git] / src / bin / lttng-sessiond / ht-cleanup.c
index a201506c0eb1da3ad94ac110c351ad3fc0d064e7..f343d620b03e80b5b657ce1970892d34f3d7866b 100644 (file)
@@ -89,6 +89,14 @@ restart:
                        revents = LTTNG_POLL_GETEV(&events, i);
                        pollfd = LTTNG_POLL_GETFD(&events, i);
 
+                       if (!revents) {
+                               /*
+                                * No activity for this FD
+                                * (poll implementation).
+                                */
+                               continue;
+                       }
+
                        /* Thread quit pipe has been closed. Killing thread. */
                        ret = sessiond_check_thread_quit_pipe(pollfd, revents);
                        if (ret) {
This page took 0.023223 seconds and 4 git commands to generate.