X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-sessiond%2Futils.c;h=429d25b3b1a2ffa243d40f2d2cd32abbd1a89f27;hb=558e70e9829c97ecd228516f6e312768be0536d7;hp=91972e9a80030ab6d331b7f6d207f3532acd0b88;hpb=1e307fab325060d9db4e989c0fdc3cddf46f50f6;p=lttng-tools.git diff --git a/ltt-sessiond/utils.c b/ltt-sessiond/utils.c index 91972e9a8..429d25b3b 100644 --- a/ltt-sessiond/utils.c +++ b/ltt-sessiond/utils.c @@ -29,6 +29,21 @@ #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. *