discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=08e1f2f4f367d16d14263286998aed24f0e6267b
commit 08e1f2f4f367d16d14263286998aed24f0e6267b Author: Mike Blumenkrantz <[email protected]> Date: Fri Dec 5 13:19:49 2014 -0500 ecore-con now prints error messages when local socket creation fails --- src/lib/ecore_con/ecore_con_local.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/lib/ecore_con/ecore_con_local.c b/src/lib/ecore_con/ecore_con_local.c index 0d74ea0..2992058 100644 --- a/src/lib/ecore_con/ecore_con_local.c +++ b/src/lib/ecore_con/ecore_con_local.c @@ -371,14 +371,21 @@ start: if (bind(svr->fd, (struct sockaddr *)&socket_unix, socket_unix_len) < 0) { + ERR("Local socket '%s' bind failed: %s", buf, strerror(errno)); if ((((svr->type & ECORE_CON_TYPE) == ECORE_CON_LOCAL_USER) || ((svr->type & ECORE_CON_TYPE) == ECORE_CON_LOCAL_SYSTEM)) && (connect(svr->fd, (struct sockaddr *)&socket_unix, - socket_unix_len) < 0) && - (unlink(buf) >= 0)) - goto start; - else - goto error_umask; + socket_unix_len) < 0)) + { + ERR("Local socket '%s' connect test failed: %s", buf, strerror(errno)); + if (unlink(buf) >= 0) + goto start; + else + { + ERR("Local socket '%s' removal failed: %s", buf, strerror(errno)); + goto error_umask; + } + } } if (listen(svr->fd, 4096) < 0) --
