Fix existing session daemon check
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index bf20850003ece493934432f876af883a59979f58..8e794bdf4365be1779c2f0bb94c5e99dae5b03ee 100644 (file)
@@ -3899,17 +3899,12 @@ end:
  */
 static int check_existing_daemon(void)
 {
-       if (access(client_unix_sock_path, F_OK) < 0 &&
-                       access(apps_unix_sock_path, F_OK) < 0) {
-               return 0;
-       }
-
        /* Is there anybody out there ? */
        if (lttng_session_daemon_alive()) {
                return -EEXIST;
-       } else {
-               return 0;
        }
+
+       return 0;
 }
 
 /*
This page took 0.024302 seconds and 4 git commands to generate.