X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fmain.c;h=3295b009a40f1a93ddc766e288f1bd3cdcb2cf54;hp=8415e8cef106db18395a2666c79b555b68d418df;hb=8fba2b8dfd9d2e9070741e082b9c1f84cb33f799;hpb=dd95933f8371a8c81ffc1dc5b306f2263f1ff808 diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 8415e8cef..3295b009a 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -1075,6 +1075,7 @@ static void *relay_thread_listener(void *data) DBG("[thread] Relay listener started"); + rcu_register_thread(); health_register(health_relayd, HEALTH_RELAYD_TYPE_LISTENER); health_code_update(); @@ -1258,6 +1259,7 @@ error_sock_control: ERR("Health error occurred in %s", __func__); } health_unregister(health_relayd); + rcu_unregister_thread(); DBG("Relay listener thread cleanup complete"); lttng_relay_stop_threads(); return NULL;