From 7c48486265d8219922743de42ddcc303f553ba4a Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 14 May 2020 18:40:29 +0200 Subject: WIP debug --- sysdep/unix/io.c | 9 +++++---- 1 file 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"); -- cgit v1.2.3