X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.cpp;h=8e22dfe66335f1332ff8740e6e64ee0869480411;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=2e532bde4eec832b13895372ddb2b314b7fae180;hpb=ac497a37018f3c253d2e50397294f58d33f7f24f;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/health-relayd.cpp b/src/bin/lttng-relayd/health-relayd.cpp index 2e532bde4..8e22dfe66 100644 --- a/src/bin/lttng-relayd/health-relayd.cpp +++ b/src/bin/lttng-relayd/health-relayd.cpp @@ -28,18 +28,18 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "lttng-relayd.h" -#include "health-relayd.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "lttng-relayd.hpp" +#include "health-relayd.hpp" /* Global health check unix path */ static @@ -114,7 +114,7 @@ static int create_lttng_rundir_with_perm(const char *rundir) ret = chmod(rundir, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); if (ret < 0) { - ERR("Unable to set permissions on %s", health_unix_sock_path); + ERR("Unable to set permissions on %s", rundir); PERROR("chmod"); ret = -1; goto error; @@ -259,7 +259,7 @@ end: /* * Thread managing health check socket. */ -void *thread_manage_health(void *data) +void *thread_manage_health_relayd(void *data __attribute__((unused))) { int sock = -1, new_sock = -1, ret, i, pollfd, err = -1; uint32_t revents, nb_fd;