projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: relayd: register listener threads as rcu readers
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
main.c
diff --git
a/src/bin/lttng-relayd/main.c
b/src/bin/lttng-relayd/main.c
index 8415e8cef106db18395a2666c79b555b68d418df..3295b009a40f1a93ddc766e288f1bd3cdcb2cf54 100644
(file)
--- 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");
DBG("[thread] Relay listener started");
+ rcu_register_thread();
health_register(health_relayd, HEALTH_RELAYD_TYPE_LISTENER);
health_code_update();
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);
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;
DBG("Relay listener thread cleanup complete");
lttng_relay_stop_threads();
return NULL;
This page took
0.02539 seconds
and
4
git commands to generate.