diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-08-27 10:26:10 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-08-27 10:26:10 +0000 |
commit | 72f43aee1f29aa97fec00d305c147ab5c16a57fc (patch) | |
tree | 23aab4bc6cb0240f9cbd1b62c7399a0a68647b60 /dns/powerdns-devel/files | |
parent | teach configure where to find libintl and libiconv. (diff) |
- Update to 2.9.11
- Fixes overwrite of config file (wrong order in Makefile)
PR: 55935
Submitted by: tremere@cainites.net
Notes
Notes:
svn path=/head/; revision=87776
Diffstat (limited to 'dns/powerdns-devel/files')
-rw-r--r-- | dns/powerdns-devel/files/patch-pdns_pdns_recursor.cc | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/dns/powerdns-devel/files/patch-pdns_pdns_recursor.cc b/dns/powerdns-devel/files/patch-pdns_pdns_recursor.cc deleted file mode 100644 index 9457ac61f8a8..000000000000 --- a/dns/powerdns-devel/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; |