From f615dd1544e2c7df779dd91b70b06d0a32ef0c38 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sun, 14 Jul 2013 23:11:29 +0200 Subject: [PATCH] SUNWotis suggests using AF_UNIX over AF_LOCAL - http://stackoverflow.com/questions/6729366/what-is-the-difference-between-af-inet-and-pf-inet-in-socket-programming --- modules/pipebackend/coprocess.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pipebackend/coprocess.cc b/modules/pipebackend/coprocess.cc index c117ec9d79..d9ca44e66a 100644 --- a/modules/pipebackend/coprocess.cc +++ b/modules/pipebackend/coprocess.cc @@ -166,7 +166,7 @@ void CoProcess::sendReceive(const string &snd, string &rcv) UnixRemote::UnixRemote(const string& path, int timeout) { - d_fd = socket(AF_LOCAL, SOCK_STREAM, 0); + d_fd = socket(AF_UNIX, SOCK_STREAM, 0); if(d_fd < 0) throw PDNSException("Unable to create UNIX domain socket: "+string(strerror(errno))); -- 2.47.3