]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
SUNWotis suggests using AF_UNIX over AF_LOCAL - http://stackoverflow.com/questions...
authorbert hubert <bert.hubert@netherlabs.nl>
Sun, 14 Jul 2013 21:11:29 +0000 (23:11 +0200)
committerbert hubert <bert.hubert@netherlabs.nl>
Sun, 14 Jul 2013 21:11:29 +0000 (23:11 +0200)
modules/pipebackend/coprocess.cc

index c117ec9d7978f8cacebd9043a44f4bb395c5d6d4..d9ca44e66a6f33a4c9b3afe15f3045a50b680925 100644 (file)
@@ -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)));