Fix: compat poll: add missing empty revents checks
[lttng-tools.git] / src / bin / lttng-sessiond / jul-thread.c
index a683cdcdbc4756b632ab6c042db474f1c2993b57..ad9f9f49f966c2c28a7dae2b9774bdf1ffa91610 100644 (file)
@@ -305,6 +305,11 @@ 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.022818 seconds and 4 git commands to generate.