Fix: skip empty revents in notificationthread
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread.c
index 58c3f2bff7baa5b1c490dabd716d5729001c8cb6..059e620598b68b2a84e731980d836f14bd7d1002 100644 (file)
@@ -642,6 +642,9 @@ void *thread_notification(void *data)
                        int fd = LTTNG_POLL_GETFD(&state.events, i);
                        uint32_t revents = LTTNG_POLL_GETEV(&state.events, i);
 
+                       if (!revents) {
+                               continue;
+                       }
                        DBG("[notification-thread] Handling fd (%i) activity (%u)", fd, revents);
 
                        if (fd == state.notification_channel_socket) {
This page took 0.025559 seconds and 5 git commands to generate.