summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/sockets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/sockets.c b/src/lib/sockets.c
index 9e5bbe17..6e7d4ad5 100644
--- a/src/lib/sockets.c
+++ b/src/lib/sockets.c
@@ -38,7 +38,7 @@ int client_socket_open(char * file_name)
int sockfd;
struct sockaddr_un serv_addr;
- sockfd = socket(AF_UNIX, SOCK_STREAM, 0);
+ sockfd = socket(AF_UNIX, SOCK_SEQPACKET, 0);
if (sockfd < 0)
return -1;
@@ -66,7 +66,7 @@ int server_socket_open(char * file_name)
return -1;
}
- sockfd = socket(AF_UNIX, SOCK_STREAM, 0);
+ sockfd = socket(AF_UNIX, SOCK_SEQPACKET, 0);
if (sockfd < 0)
return -1;