X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-events.c;h=1388b3ce34a0f743e3475af910e692502a4592ab;hb=28dc0326d832142a7b5fe5e31d4ebb5d8c5d745a;hp=747740233094477c00fb59065cce2dd3f9861013;hpb=61883fe45e4389fd4fd6ca4c869cc384b4185637;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index 747740233..1388b3ce3 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -2153,6 +2153,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) {