X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread.c;fp=src%2Fbin%2Flttng-sessiond%2Fnotification-thread.c;h=917cec5a2500f56f8f12350b74db94e423dc6928;hp=9b2cd5b96a9139ad9cea7e934b4e84770167d40c;hb=d02d7404fac685cd836b53e121afc64af71af140;hpb=7e802d0a78ee4010dc540db15b7c747b28c2eacf diff --git a/src/bin/lttng-sessiond/notification-thread.c b/src/bin/lttng-sessiond/notification-thread.c index 9b2cd5b96..917cec5a2 100644 --- a/src/bin/lttng-sessiond/notification-thread.c +++ b/src/bin/lttng-sessiond/notification-thread.c @@ -134,6 +134,7 @@ struct notification_thread_handle *notification_thread_handle_create( } else { handle->channel_monitoring_pipes.kernel_consumer = -1; } + end: return handle; error: @@ -378,6 +379,9 @@ void fini_thread_state(struct notification_thread_state *state) notification_channel_socket_destroy( state->notification_channel_socket); } + + assert(cds_list_empty(&state->tracer_event_sources_list)); + if (state->executor) { action_executor_destroy(state->executor); } @@ -486,6 +490,8 @@ int init_thread_state(struct notification_thread_handle *handle, goto error; } + CDS_INIT_LIST_HEAD(&state->tracer_event_sources_list); + state->executor = action_executor_create(handle); if (!state->executor) { goto error;