diff options
author | dinoex <dinoex@FreeBSD.org> | 2003-08-27 18:26:10 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2003-08-27 18:26:10 +0800 |
commit | 9f9c40fb6b0c3f37482217d393cbf4817e1d3b72 (patch) | |
tree | 75b35987ec3edbdf9e4e66666d8658c93473a978 /dns/powerdns/files | |
parent | d8d66237810e55aebd72fa6be9083737fbe65961 (diff) | |
download | freebsd-ports-gnome-9f9c40fb6b0c3f37482217d393cbf4817e1d3b72.tar.gz freebsd-ports-gnome-9f9c40fb6b0c3f37482217d393cbf4817e1d3b72.tar.zst freebsd-ports-gnome-9f9c40fb6b0c3f37482217d393cbf4817e1d3b72.zip |
- Update to 2.9.11
- Fixes overwrite of config file (wrong order in Makefile)
PR: 55935
Submitted by: tremere@cainites.net
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r-- | dns/powerdns/files/patch-pdns_pdns_recursor.cc | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/dns/powerdns/files/patch-pdns_pdns_recursor.cc b/dns/powerdns/files/patch-pdns_pdns_recursor.cc deleted file mode 100644 index 9457ac61f8a8..000000000000 --- a/dns/powerdns/files/patch-pdns_pdns_recursor.cc +++ /dev/null @@ -1,48 +0,0 @@ ---- pdns/pdns_recursor.cc.orig Thu Jul 3 10:30:03 2003 -+++ pdns/pdns_recursor.cc Thu Jul 10 16:45:27 2003 -@@ -35,6 +35,10 @@ - #include "statbag.hh" - #include "arguments.hh" - #include "syncres.hh" -+#include <fcntl.h> -+#include <fstream> -+ -+string s_programname="pdns_recursor"; - - #ifndef WIN32 - extern "C" { -@@ -129,6 +133,17 @@ - cache[toLower(qname)+"|"+qt.getName()]=content; - } - -+static void writePid(void) -+{ -+ string fname=arg()["socket-dir"]+"/"+s_programname+".pid"; -+ ofstream of(fname.c_str()); -+ if(of) -+ of<<getpid()<<endl; -+ else -+ L<<Logger::Error<<"Requested to write pid for "<<getpid()<<" to "<<fname<<" -+failed: "<<strerror(errno)<<endl; -+} -+ - void init(void) - { - // prime root cache -@@ -394,6 +409,7 @@ - arg().set("daemon","Operate as a daemon")="yes"; - arg().set("quiet","Suppress logging of questions and answers")="off"; - arg().set("config-dir","Location of configuration directory (recursor.conf)")=SYSCONFDIR; -+ arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR; - arg().setCmd("help","Provide a helpful message"); - L.toConsole(Logger::Warning); - arg().laxParse(argc,argv); // do a lax parse -@@ -433,6 +449,8 @@ - daemonize(); - } - signal(SIGUSR1,usr1Handler); -+ -+ writePid(); - #endif - - vector<TCPConnection> tcpconnections; |