Use install path for exec()
[lttng-tools.git] / lttng / lttng.c
index 455b18c58108963ef725a35037418d3ffbf0d338..f568933650407693be890e636843effa77af0299 100644 (file)
@@ -336,8 +336,9 @@ static int check_sessiond(void)
 
                /* Let's rock and roll */
                if (pathname == NULL) {
-                       ret = asprintf(&alloc_pathname, "ltt-sessiond");
+                       ret = asprintf(&alloc_pathname, INSTALL_PATH "/ltt-sessiond");
                        if (ret < 0) {
+                               perror("asprintf spawn sessiond");
                                goto end;
                        }
                        pathname = alloc_pathname;
This page took 0.023025 seconds and 4 git commands to generate.