Fix: print errno message on connect() error
authorDavid Goulet <dgoulet@efficios.com>
Fri, 5 Jul 2013 16:01:10 +0000 (12:01 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 5 Jul 2013 16:03:28 +0000 (12:03 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/sessiond-comm/inet.c
src/common/sessiond-comm/inet6.c

index f55482e422f173dd28921201b2815651299ad205..b2bd65d9029672efb47a4469ef3632b30a649740 100644 (file)
@@ -102,10 +102,7 @@ int lttcomm_connect_inet_sock(struct lttcomm_sock *sock)
        ret = connect(sock->fd, (struct sockaddr *) &sock->sockaddr.addr.sin,
                        sizeof(sock->sockaddr.addr.sin));
        if (ret < 0) {
-               /*
-                * Don't print message on connect error, because connect is used in
-                * normal execution to detect if sessiond is alive.
-                */
+               PERROR("connect");
                goto error_connect;
        }
 
index e9558d948652e7a7c2930645bf98c9238d66c860..8d883740478f0c0cfca365f2334daed6a7669ba5 100644 (file)
@@ -102,10 +102,7 @@ int lttcomm_connect_inet6_sock(struct lttcomm_sock *sock)
        ret = connect(sock->fd, (struct sockaddr *) &sock->sockaddr.addr.sin6,
                        sizeof(sock->sockaddr.addr.sin6));
        if (ret < 0) {
-               /*
-                * Don't print message on connect error, because connect is used in
-                * normal execution to detect if sessiond is alive.
-                */
+               PERROR("connect inet6");
                goto error_connect;
        }
 
This page took 0.027061 seconds and 4 git commands to generate.