Build fix: g++ < 7.1 mishandles namespaces of specializations
[lttng-tools.git] / src / bin / lttng-sessiond / utils.cpp
index 20b2232888195296fd0f279ba41ab17238a0ae6b..8fec340403c4994fcee00a0678dc071906c66554 100644 (file)
 #include <stdlib.h>
 #include <unistd.h>
 
-#include <common/error.h>
+#include <common/error.hpp>
 
-#include "utils.h"
-#include "snapshot.h"
-#include "lttng-sessiond.h"
+#include "utils.hpp"
+#include "snapshot.hpp"
+#include "lttng-sessiond.hpp"
 
 /*
  * Write to writable pipe used to notify a thread.
@@ -30,7 +30,8 @@ int notify_thread_pipe(int wpipe)
 
        ret = lttng_write(wpipe, "!", 1);
        if (ret < 1) {
-               PERROR("write poll pipe");
+               ret = -1;
+               PERROR("Failed to write to thread pipe");
        }
 
        return (int) ret;
This page took 0.027991 seconds and 4 git commands to generate.