Fix: compat poll: add missing empty revents checks
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.c
index 8194c3e4bfba9525c878116da96f2928bec2bc9c..402b44277777b07a7ccd9e49d47e69e1049549d7 100644 (file)
@@ -329,6 +329,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 = check_health_quit_pipe(pollfd, revents);
                        if (ret) {
This page took 0.023725 seconds and 4 git commands to generate.