Turn health.h/health.c into a library
[lttng-tools.git] / src / bin / lttng-sessiond / ust-thread.c
index 67c2971d627ba36e8ec934bf6acf07bdd32a8e8b..683718326881f8697058d6ce7a896d7b3ad9e292 100644 (file)
@@ -23,7 +23,7 @@
 #include "fd-limit.h"
 #include "lttng-sessiond.h"
 #include "ust-thread.h"
-#include "health.h"
+#include "health-sessiond.h"
 
 /*
  * This thread manage application notify communication.
@@ -39,7 +39,7 @@ void *ust_thread_manage_notify(void *data)
        rcu_register_thread();
        rcu_thread_online();
 
-       health_register(HEALTH_TYPE_APP_MANAGE_NOTIFY);
+       health_register(health_sessiond, HEALTH_TYPE_APP_MANAGE_NOTIFY);
 
        health_code_update();
 
@@ -176,7 +176,7 @@ error_poll_create:
                health_error();
                ERR("Health error occurred in %s", __func__);
        }
-       health_unregister();
+       health_unregister(health_sessiond);
        rcu_thread_offline();
        rcu_unregister_thread();
        return NULL;
This page took 0.024967 seconds and 5 git commands to generate.