From: Jérémie Galarneau Date: Wed, 10 May 2017 20:42:09 +0000 (-0400) Subject: Fix: skip empty revents in notificationthread X-Git-Tag: v2.11.0-rc1~588 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=2d01d9779f90daf38b43f57ef53137a1474db97e Fix: skip empty revents in notificationthread Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/notification-thread.c b/src/bin/lttng-sessiond/notification-thread.c index 58c3f2bff..059e62059 100644 --- a/src/bin/lttng-sessiond/notification-thread.c +++ b/src/bin/lttng-sessiond/notification-thread.c @@ -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) {