From b09c7c76bc6f409ed9c303c81cba168234700568 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 14 Feb 2012 15:33:20 -0500 Subject: [PATCH] Fix existing session daemon check On unclean exit, the session daemon socket are not removed making the access() test valid on the next session daemon execution and failing to recover from a fatal error. Signed-off-by: David Goulet --- src/bin/lttng-sessiond/main.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index bf2085000..8e794bdf4 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; } /* -- 2.34.1