From: Mathieu Desnoyers Date: Tue, 9 Apr 2013 15:31:46 +0000 (-0400) Subject: connect: don't print error on EPERM X-Git-Tag: v2.2.0-rc2~16 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=256e8c983f7c3999ec0f54764afd06aa08d47ae9;p=lttng-ust.git connect: don't print error on EPERM Happens if sessiond is not running, and app is launched. Signed-off-by: Mathieu Desnoyers --- 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)