From: David Goulet Date: Tue, 14 Feb 2012 20:33:20 +0000 (-0500) Subject: Fix existing session daemon check X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=b09c7c76bc6f409ed9c303c81cba168234700568 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 --- 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; } /*