X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fhealth.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fhealth.cpp;h=dd3d9426d3f1eb6fec96713aa3462f9d1a7f54eb;hp=bd9d46bb6dc0f06b8197e6fe0dc2c8740893c683;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-sessiond/health.cpp b/src/bin/lttng-sessiond/health.cpp index bd9d46bb6..dd3d9426d 100644 --- a/src/bin/lttng-sessiond/health.cpp +++ b/src/bin/lttng-sessiond/health.cpp @@ -134,7 +134,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 +241,7 @@ error: lttng_poll_clean(&events); rcu_unregister_thread(); - return NULL; + return nullptr; } static bool shutdown_health_management_thread(void *data) @@ -252,7 +252,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;