.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / src / bin / lttng-sessiond / health.cpp
index bd9d46bb6dc0f06b8197e6fe0dc2c8740893c683..4aa4275629e0d92fea6014c3ad5f304bcb9ed075 100644 (file)
@@ -16,6 +16,7 @@
 #include <common/pipe.hpp>
 #include <common/utils.hpp>
 
+#include <fcntl.h>
 #include <inttypes.h>
 #include <sys/stat.h>
 
@@ -134,7 +135,7 @@ static void *thread_manage_health(void *data)
        }
 
        mark_thread_as_ready(notifiers);
-       while (1) {
+       while (true) {
                DBG("Health check ready");
 
                /* Infinite blocking call, waiting for transmission */
@@ -241,7 +242,7 @@ error:
 
        lttng_poll_clean(&events);
        rcu_unregister_thread();
-       return NULL;
+       return nullptr;
 }
 
 static bool shutdown_health_management_thread(void *data)
@@ -252,7 +253,7 @@ static bool shutdown_health_management_thread(void *data)
        return notify_thread_pipe(write_fd) == 1;
 }
 
-bool launch_health_management_thread(void)
+bool launch_health_management_thread()
 {
        struct thread_notifiers *notifiers;
        struct lttng_thread *thread;
This page took 0.022837 seconds and 4 git commands to generate.