Fix: sessiond: off-by-one poll check when draining an event notifier
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 6bd799279b3ff6cead92c77bb2553c6117ed5afc..747902612d93059705cd9d987cde39e1cc757a31 100644 (file)
@@ -2017,7 +2017,7 @@ int drain_event_notifier_notification_pipe(
                 * the pipe is closed but empty.
                 */
                ret = lttng_poll_wait_interruptible(&events, 0);
-               if (ret == 0 || (LTTNG_POLL_GETEV(&events, 1) & LPOLLIN) == 0) {
+               if (ret == 0 || (LTTNG_POLL_GETEV(&events, 0) & LPOLLIN) == 0) {
                        /* No more notification to be read on this pipe. */
                        ret = 0;
                        goto end;
This page took 0.023225 seconds and 4 git commands to generate.