X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=d7ed4eb0b0a7fc0ec18b99d7fd73a1a8c8b1485e;hb=db7586006bc1a2b9057a2c108bf1e7d20fd6903f;hp=82deb9b0e4cc2acff6942ffbfa38aa5d9374ddb8;hpb=0ba98ebc83bf874d34c8c84b164a6ad803e9de75;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 82deb9b0e..d7ed4eb0b 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -39,11 +39,11 @@ #include #include -#include +#include +#include +#include #include #include -#include -#include #include "lttng-sessiond.h" #include "channel.h" @@ -4169,14 +4169,14 @@ static void sighandler(int sig) { switch (sig) { case SIGPIPE: - DBG("SIGPIPE catched"); + DBG("SIGPIPE caugth"); return; case SIGINT: - DBG("SIGINT catched"); + DBG("SIGINT caugth"); stop_threads(); break; case SIGTERM: - DBG("SIGTERM catched"); + DBG("SIGTERM caugth"); stop_threads(); break; default: @@ -4278,7 +4278,7 @@ int main(int argc, char **argv) is_root = !getuid(); if (is_root) { - rundir = strdup(LTTNG_RUNDIR); + rundir = strdup(DEFAULT_LTTNG_RUNDIR); /* Create global run dir with root access */ ret = create_lttng_rundir(rundir); @@ -4325,7 +4325,7 @@ int main(int argc, char **argv) * Create rundir from home path. This will create something like * $HOME/.lttng */ - ret = asprintf(&rundir, LTTNG_HOME_RUNDIR, home_path); + ret = asprintf(&rundir, DEFAULT_LTTNG_HOME_RUNDIR, home_path); if (ret < 0) { ret = -ENOMEM; goto error;