]> granicus.if.org Git - pdns/commitdiff
dup stdout to /dev/null to prevent 'one character at a time' logging
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2005 19:24:27 +0000 (19:24 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 11 Jan 2005 19:24:27 +0000 (19:24 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@264 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/docs/pdns.sgml
pdns/packethandler.cc
pdns/receiver.cc

index fb34a1c7ef2ab5293f4a6ddcf169e4856eee7b48..3956d57a7917150c3cbd0fef8b041859b3a2de3f 100644 (file)
@@ -11,7 +11,7 @@
       </affiliation>
     </author>
     
-    <PubDate>v2.1 $Date: 2004/09/13 19:10:28 $</PubDate>
+    <PubDate>v2.1 $Date: 2005/01/11 19:24:27 $</PubDate>
     
     <Abstract>
        <para>  
        Before proceeding, it is advised to check the release notes for your PDNS version, as specified in the name of the distribution
        file.
       </para>
+      <sect2 id="changelog-2-9-17"><title>Version 2.9.17</title>
+       <para>
+         See <ulink url="http://ds9a.nl/cgi-bin/cvstrac/pdns/timeline">the new timeline</ulink> for progress reports.
+       </para>
+       <para>
+         <itemizedlist>
+           <listitem>
+             <para>
+               GMySQL now works on Solaris
+             </para>
+           </listitem>
+           <listitem>
+             <para>
+               PowerDNS could be confused by questions with a %-sign in them
+             </para>
+           </listitem>
+           <listitem>
+             <para>
+               Duplicate MX records are now no longer considered duplicate if their priorities differ.
+             </para>
+           </listitem>
+           <listitem>
+             <para>
+               Reported version can be changed, or removed
+             </para>
+           </listitem>
+           <listitem>
+             <para>
+               An authentication bug in the webserver was possibly fixed, please report if you were suffering from this.
+             </para>
+           </listitem>
+         </itemizedlist>
+       </para>
+      </sect2>
       <sect2 id="changelog-2-9-16"><title>Version 2.9.16</title>
        <para>
          The 'it must still be Friday somewhere' release. Massive number of fixes, portability improvements and
index d20ca9012f4481553f8850ce6564bb2115b58f92..068c53e149220de061acfa4cdb2bb42887085c6d 100644 (file)
@@ -1,6 +1,6 @@
 /*
     PowerDNS Versatile Database Driven Nameserver
-    Copyright (C) 2002  PowerDNS.COM BV
+    Copyright (C) 2004  PowerDNS.COM BV
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -154,7 +154,7 @@ int PacketHandler::doDNSCheckRequest(DNSPacket *p, DNSPacket *r, string &target)
   DNSResourceRecord rr;
 
   if (p->qclass == 3 && p->qtype.getName() == "HINFO") {
-    rr.content = "PowerDNS $Id: packethandler.cc,v 1.25 2004/04/01 19:59:21 ahu Exp $";
+    rr.content = "PowerDNS $Id: packethandler.cc,v 1.26 2005/01/11 19:24:27 ahu Exp $";
     rr.ttl = 5;
     rr.qname=target;
     rr.qtype=13; // hinfo
@@ -174,7 +174,7 @@ int PacketHandler::doVersionRequest(DNSPacket *p, DNSPacket *r, string &target)
   const string mode=arg()["version-string"];
   if(p->qtype.getCode()==QType::TXT && target=="version.bind") {// TXT
     if(mode.empty() || mode=="full") 
-      rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.25 2004/04/01 19:59:21 ahu Exp $";
+      rr.content="Served by POWERDNS "VERSION" $Id: packethandler.cc,v 1.26 2005/01/11 19:24:27 ahu Exp $";
     else if(mode=="anonymous") {
       r->setRcode(RCode::ServFail);
       return 1;
index 2ff6eaf98ccea4116c5ffc53ce356e1655ee2692..421a5a85e1e5746fdb007459a87dfed6bf325a42 100644 (file)
@@ -16,7 +16,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
-// $Id: receiver.cc,v 1.12 2004/10/24 12:08:01 ahu Exp $
+// $Id: receiver.cc,v 1.13 2005/01/11 19:24:27 ahu Exp $
 #include <cstdio>
 #include <signal.h>
 #include <cstring>
@@ -98,9 +98,14 @@ void daemonize(void)
   setsid(); 
 
   int i=open("/dev/null",O_RDWR); /* open stdin */
-  dup2(i,0); /* stdin */
-  dup2(i,1); /* stderr */
-  dup2(i,2); /* stderr */
+  if(i < 0) 
+    L<<Logger::Critical<<"Unable to open /dev/null: "<<stringerror()<<endl;
+  else {
+    dup2(i,0); /* stdin */
+    dup2(i,1); /* stderr */
+    dup2(i,2); /* stderr */
+    close(i);
+  }
 }