X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmanage-apps.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fmanage-apps.cpp;h=27fa6ce85e0e47afd522698c7ebe067f8250ff17;hp=8e7f50900bc32bbdf66816f132d89ebad775ff82;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/src/bin/lttng-sessiond/manage-apps.cpp b/src/bin/lttng-sessiond/manage-apps.cpp index 8e7f50900..27fa6ce85 100644 --- a/src/bin/lttng-sessiond/manage-apps.cpp +++ b/src/bin/lttng-sessiond/manage-apps.cpp @@ -84,7 +84,7 @@ static void *thread_application_management(void *data) health_code_update(); - while (1) { + while (true) { DBG("Apps thread polling"); /* Inifinite blocking call, waiting for transmission */ @@ -198,7 +198,7 @@ error_testpoint: DBG("Application communication apps thread cleanup complete"); rcu_thread_offline(); rcu_unregister_thread(); - return NULL; + return nullptr; } static bool shutdown_application_management_thread(void *data) @@ -212,7 +212,7 @@ static bool shutdown_application_management_thread(void *data) bool launch_application_management_thread(int apps_cmd_pipe_read_fd) { struct lttng_pipe *quit_pipe; - struct thread_notifiers *notifiers = NULL; + struct thread_notifiers *notifiers = nullptr; struct lttng_thread *thread; notifiers = zmalloc();