Fix: skip empty revents in notificationthread
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 May 2017 20:42:09 +0000 (16:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 10 May 2017 20:56:23 +0000 (16:56 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.026017 seconds and 4 git commands to generate.