X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-events.c;h=a295739f2c3adc3be22cedee490de6e56ad5e163;hb=3a5f70173aa04d11ccb22694d5d31a702cad33ab;hp=e2fa30681ca5283a563703f037d2c3187001d8be;hpb=a0377dfefe40662ba7d68617bce6ff467114136c;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 e2fa30681..a295739f2 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -654,7 +654,6 @@ error: return NULL; } -LTTNG_HIDDEN bool notification_client_list_get(struct notification_client_list *list) { return urcu_ref_get_unless_zero(&list->ref); @@ -2152,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) { @@ -4345,7 +4350,6 @@ int send_evaluation_to_clients(const struct lttng_trigger *trigger, * interference from external users (those could, for instance, unregister * their triggers). */ -LTTNG_HIDDEN int notification_client_list_send_evaluation( struct notification_client_list *client_list, const struct lttng_trigger *trigger,