Major code cleanup
[lttng-tools.git] / ltt-sessiond / utils.c
index 91972e9a80030ab6d331b7f6d207f3532acd0b88..429d25b3b1a2ffa243d40f2d2cd32abbd1a89f27 100644 (file)
 
 #include "utils.h"
 
+/*
+ * Write to writable pipe used to notify a thread.
+ */
+int notify_thread_pipe(int wpipe)
+{
+       int ret;
+
+       ret = write(wpipe, "!", 1);
+       if (ret < 0) {
+               perror("write poll pipe");
+       }
+
+       return ret;
+}
+
 /*
  * Return pointer to home directory path using the env variable HOME.
  *
This page took 0.023096 seconds and 4 git commands to generate.