Initial import of the snapshot ABI/API in lttng-ctl
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index afd55a1abf882e41ce6acb8bbceaec46ff77fe2e..c9693f711f5140f26f63c2b34fa99bb578ca321c 100644 (file)
@@ -340,6 +340,11 @@ static int connect_sessiond(void)
 {
        int ret;
 
 {
        int ret;
 
+       /* Don't try to connect if already connected. */
+       if (connected) {
+               return 0;
+       }
+
        ret = set_session_daemon_path();
        if (ret < 0) {
                goto error;
        ret = set_session_daemon_path();
        if (ret < 0) {
                goto error;
This page took 0.022524 seconds and 4 git commands to generate.