connect: don't print error on EPERM
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Apr 2013 15:31:46 +0000 (11:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Apr 2013 15:31:46 +0000 (11:31 -0400)
Happens if sessiond is not running, and app is launched.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-comm/lttng-ust-comm.c

index fd48a515e762109acea7b31d4c7b8566f5f04f39..7a87ff1a7215edfff2ebe52cb871a9bf88ba7e8b 100644 (file)
@@ -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)
This page took 0.026393 seconds and 4 git commands to generate.