summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index aa86f62e..b701ee52 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -1540,12 +1540,12 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen)
fd = socket(AF_UNIX, SOCK_STREAM, 0);
if (fd < 0)
- return -1;
+ return -2;
log(L_DEBUG, "sk_connect_unix 3");
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)
- return -1;
+ return -3;
log(L_DEBUG, "sk_connect_unix 4");
@@ -1556,7 +1556,7 @@ sk_connect_unix(sock *s, char *name, socklen_t namelen)
hexdump((const char*)&sa, sizeof(sa.sun_family) + namelen);
if (connect(fd, (struct sockaddr *) &sa, sizeof(sa.sun_family) + namelen) < 0)
- return -1;
+ return -4;
log(L_DEBUG, "sk_connect_unix 5");