From: bert hubert Date: Sun, 14 Jul 2013 21:11:29 +0000 (+0200) Subject: SUNWotis suggests using AF_UNIX over AF_LOCAL - http://stackoverflow.com/questions... X-Git-Tag: rec-3.6.0-rc1~563 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f615dd1544e2c7df779dd91b70b06d0a32ef0c38;p=thirdparty%2Fpdns.git 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 --- 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)));