X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fhealth.cpp;h=4aa4275629e0d92fea6014c3ad5f304bcb9ed075;hb=283a96e49f066a4263726271bc64aa7e94ae0e92;hp=bd9d46bb6dc0f06b8197e6fe0dc2c8740893c683;hpb=28ab034a2c3582d07d3423d2d746731f87d3969f;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/health.cpp b/src/bin/lttng-sessiond/health.cpp index bd9d46bb6..4aa427562 100644 --- a/src/bin/lttng-sessiond/health.cpp +++ b/src/bin/lttng-sessiond/health.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include @@ -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;