.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / src / bin / lttng-sessiond / notify-apps.cpp
index 5d67a914f8ecbc6abefba99b8a6709bd33efd61c..03ac5866c83d562289c948c219d36a72d49a2f75 100644 (file)
@@ -18,6 +18,8 @@
 #include <common/common.hpp>
 #include <common/utils.hpp>
 
+#include <fcntl.h>
+
 namespace {
 struct thread_notifiers {
        struct lttng_pipe *quit_pipe;
@@ -69,7 +71,7 @@ static void *thread_application_notification(void *data)
 
        health_code_update();
 
-       while (1) {
+       while (true) {
                DBG3("[ust-thread] Manage notify polling");
 
                /* Inifinite blocking call, waiting for transmission */
@@ -197,7 +199,7 @@ error_testpoint:
        health_unregister(the_health_sessiond);
        rcu_thread_offline();
        rcu_unregister_thread();
-       return NULL;
+       return nullptr;
 }
 
 static bool shutdown_application_notification_thread(void *data)
This page took 0.022826 seconds and 4 git commands to generate.