aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Molinaro <anthonym@alumni.caltech.edu>2017-02-13 14:17:02 -0800
committerdx <dx@dxzone.com.ar>2017-03-12 01:27:59 -0300
commitc9e9c9c501d1609c3dd5f95a25efa60c4f1be384 (patch)
tree063e9721cd4d4c28ffba59bc4ad0e152a07554ac
parente7e6484b113c040967932e6cfbb91a3469efda56 (diff)
Another instance where PF_UNIX was used and shouldn't.
I couldn't find anyplace that actually enables the IPC, but I hand edited the config.h to enable it, and did see the protocol not supported failure, so modified this file and it went away.
-rw-r--r--ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc.c b/ipc.c
index 304a8ef2..e4e48a89 100644
--- a/ipc.c
+++ b/ipc.c
@@ -897,7 +897,7 @@ int ipc_master_listen_socket()
un_addr.sun_family = AF_UNIX;
strcpy(un_addr.sun_path, IPCSOCKET);
- serversock = socket(AF_UNIX, SOCK_STREAM, PF_UNIX);
+ serversock = socket(AF_UNIX, SOCK_STREAM, 0);
if (serversock == -1) {
log_message(LOGLVL_WARNING, "Unable to create UNIX socket: %s", strerror(errno));