Clean-up: fix comment type in lttng-consumerd.c
[lttng-tools.git] / src / bin / lttng-consumerd / lttng-consumerd.c
index 7f78c4ec2b0971fcfa249a3c35f7c953bd5a8d39..a32548fa0ba14aa7874cbcb42c7365b5417dea70 100644 (file)
@@ -308,6 +308,8 @@ int main(int argc, char **argv)
        void *status;
        struct lttng_consumer_local_data *tmp_ctx;
 
+       rcu_register_thread();
+
        if (set_signal_handler()) {
                retval = -1;
                goto exit_set_signal_handler;
@@ -536,7 +538,7 @@ int main(int argc, char **argv)
                goto exit_data_thread;
        }
 
-       /* Create the thread to manage the receive of fd */
+       /* Create the thread to manage the reception of fds */
        ret = pthread_create(&sessiond_thread, default_pthread_attr(),
                        consumer_thread_sessiond_poll,
                        (void *) ctx);
@@ -643,6 +645,8 @@ exit_health_consumerd_cleanup:
 exit_options:
 exit_set_signal_handler:
 
+       rcu_unregister_thread();
+
        if (!retval) {
                exit(EXIT_SUCCESS);
        } else {
This page took 0.023847 seconds and 4 git commands to generate.