Cleanup liblttngctl
[lttng-tools.git] / lttng / lttng.c
index 5319c13d3dd9e33d7f3cddc70f1adf739f89d518..75cb1b47372323c656d59b8851fc41f9bb85b4dc 100644 (file)
@@ -32,8 +32,8 @@
 
 #include <lttng/lttng.h>
 
-#include "lttng.h"
 #include "lttngerr.h"
+#include "options.h"
 
 /* Variables */
 static char *progname;
@@ -645,8 +645,8 @@ static int check_ltt_sessiond(void)
        int ret;
        char *pathname = NULL, *alloc_pathname = NULL;
 
-       ret = lttng_check_session_daemon();
-       if (ret < 0) {
+       ret = lttng_session_daemon_alive();
+       if (ret == 0) { /* not alive */
                /* Try command line option path */
                if (opt_sessiond_path != NULL) {
                        ret = access(opt_sessiond_path, F_OK | X_OK);
This page took 0.022438 seconds and 4 git commands to generate.