Fix: relayd: missing session unlock on error path
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.cpp
index 2e532bde4eec832b13895372ddb2b314b7fae180..d43c371856b9fdc45e3dd9ccb9287eef4b614f57 100644 (file)
@@ -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;
This page took 0.025382 seconds and 4 git commands to generate.