[MEDIUM] Add supports of bind on unix sockets.
diff --git a/src/frontend.c b/src/frontend.c
index eea1ce0..f51a3d9 100644
--- a/src/frontend.c
+++ b/src/frontend.c
@@ -87,7 +87,7 @@
s->srv_error = default_srv_error;
/* Adjust some socket options */
- if (unlikely(setsockopt(cfd, IPPROTO_TCP, TCP_NODELAY, (char *) &one, sizeof(one)) == -1)) {
+ if ((s->listener->addr.ss_family != AF_UNIX) && unlikely(setsockopt(cfd, IPPROTO_TCP, TCP_NODELAY, (char *) &one, sizeof(one)) == -1)) {
Alert("accept(): cannot set the socket in non blocking mode. Giving up\n");
goto out_delete_cfd;
}