summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-05-14 18:40:29 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-14 18:40:29 +0200
commit7c48486265d8219922743de42ddcc303f553ba4a (patch)
treee8683bd20468b9561d977eb1031e7ff27e62dbf7 /sysdep/unix/io.c
parent21a1a3ec1b319b1109a7d876cf946354d7b14c9b (diff)
WIP debug
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 814fa1ec..bdad4ab9 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -1572,10 +1572,11 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen)
if (connect(fd, (struct sockaddr *) &sa, sizeof(sa.sun_family) + namelen) >= 0)
sk_unix_connected(s);
- else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS &&
- errno != ECONNREFUSED && errno != EHOSTUNREACH && errno != ENETUNREACH)
- ERR2("connect");
- break;
+ else if (errno != EINTR && errno != EAGAIN && errno != EINPROGRESS &&
+ errno != ECONNREFUSED && errno != EHOSTUNREACH && errno != ENETUNREACH)
+ {
+ ERR2("connect");
+ }
log(L_TRACE "sk_connect_unix 5");