summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-05-12 00:49:11 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-05-12 00:49:11 +0200
commitf74590d642d6d4613aee6eb311a47a046d8c3061 (patch)
treec5ae17e54fb997221a87eeba75e57ea69c3dd8f9 /sysdep/unix/io.c
parent85b726a94c508a8a6b5fef28397257721033f8ca (diff)
WIP unix socket debug 8
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");