From 256e8c983f7c3999ec0f54764afd06aa08d47ae9 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 9 Apr 2013 11:31:46 -0400 Subject: [PATCH] connect: don't print error on EPERM Happens if sessiond is not running, and app is launched. Signed-off-by: Mathieu Desnoyers --- liblttng-ust-comm/lttng-ust-comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liblttng-ust-comm/lttng-ust-comm.c b/liblttng-ust-comm/lttng-ust-comm.c index fd48a515..7a87ff1a 100644 --- a/liblttng-ust-comm/lttng-ust-comm.c +++ b/liblttng-ust-comm/lttng-ust-comm.c @@ -123,7 +123,7 @@ int ustcomm_connect_unix_sock(const char *pathname) * file exists but no sessiond is listening. */ if (errno != ECONNREFUSED && errno != ECONNRESET - && errno != ENOENT) + && errno != ENOENT && errno != EPERM) PERROR("connect"); ret = -errno; if (ret == -ECONNREFUSED || ret == -ECONNRESET) -- 2.34.1