Remove fcntl wrapper
[lttng-tools.git] / src / bin / lttng-sessiond / manage-apps.cpp
index 8e7f50900bc32bbdf66816f132d89ebad775ff82..68e70676aa1daf0ff0a7340907891f6d9bd02a65 100644 (file)
@@ -13,6 +13,8 @@
 #include "thread.hpp"
 #include "utils.hpp"
 
+#include <fcntl.h>
+
 namespace {
 struct thread_notifiers {
        struct lttng_pipe *quit_pipe;
@@ -84,7 +86,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 +200,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 +214,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<thread_notifiers>();
This page took 0.030162 seconds and 4 git commands to generate.