X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Flive.c;h=f28b9c66fa90fb89301287b8af9910d0aac7f5f0;hp=a64d69b02e37f1f4413957f8e7e6e514d34d1e3e;hb=8fba2b8dfd9d2e9070741e082b9c1f84cb33f799;hpb=dd95933f8371a8c81ffc1dc5b306f2263f1ff808 diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c index a64d69b02..f28b9c66f 100644 --- a/src/bin/lttng-relayd/live.c +++ b/src/bin/lttng-relayd/live.c @@ -598,6 +598,7 @@ void *thread_listener(void *data) DBG("[thread] Relay live listener started"); + rcu_register_thread(); health_register(health_relayd, HEALTH_RELAYD_TYPE_LIVE_LISTENER); health_code_update(); @@ -739,6 +740,7 @@ error_sock_control: DBG("Live viewer listener thread exited with error"); } health_unregister(health_relayd); + rcu_unregister_thread(); DBG("Live viewer listener thread cleanup complete"); if (lttng_relay_stop_threads()) { ERR("Error stopping threads");