Fix: notification-thread: handling event from a removed tracer event src
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.c
index 38eb85a1eda4cf483362b1ada7d8ab565f882187..a295739f2c3adc3be22cedee490de6e56ad5e163 100644 (file)
@@ -2151,6 +2151,12 @@ int remove_tracer_event_source_from_pollset(
 
        source_element->is_fd_in_poll_set = false;
 
+       /*
+        * Force the notification thread to restart the poll() loop to ensure
+        * that any events from the removed fd are removed.
+        */
+       state->restart_poll = true;
+
        ret = drain_event_notifier_notification_pipe(state, source_element->fd,
                        source_element->domain);
        if (ret) {
This page took 0.023329 seconds and 4 git commands to generate.