From 11a2091b550f92783a39f5fba080157583657a5c Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Tue, 11 Jan 2005 19:24:27 +0000 Subject: [PATCH] dup stdout to /dev/null to prevent 'one character at a time' logging git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@264 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/docs/pdns.sgml | 36 +++++++++++++++++++++++++++++++++++- pdns/packethandler.cc | 6 +++--- pdns/receiver.cc | 13 +++++++++---- 3 files changed, 47 insertions(+), 8 deletions(-) diff --git a/pdns/docs/pdns.sgml b/pdns/docs/pdns.sgml index fb34a1c7e..3956d57a7 100644 --- a/pdns/docs/pdns.sgml +++ b/pdns/docs/pdns.sgml @@ -11,7 +11,7 @@ - v2.1 $Date: 2004/09/13 19:10:28 $ + v2.1 $Date: 2005/01/11 19:24:27 $ @@ -81,6 +81,40 @@ Before proceeding, it is advised to check the release notes for your PDNS version, as specified in the name of the distribution file. + Version 2.9.17 + + See the new timeline for progress reports. + + + + + + GMySQL now works on Solaris + + + + + PowerDNS could be confused by questions with a %-sign in them + + + + + Duplicate MX records are now no longer considered duplicate if their priorities differ. + + + + + Reported version can be changed, or removed + + + + + An authentication bug in the webserver was possibly fixed, please report if you were suffering from this. + + + + + Version 2.9.16 The 'it must still be Friday somewhere' release. Massive number of fixes, portability improvements and diff --git a/pdns/packethandler.cc b/pdns/packethandler.cc index d20ca9012..068c53e14 100644 --- a/pdns/packethandler.cc +++ b/pdns/packethandler.cc @@ -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; diff --git a/pdns/receiver.cc b/pdns/receiver.cc index 2ff6eaf98..421a5a85e 100644 --- a/pdns/receiver.cc +++ b/pdns/receiver.cc @@ -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 #include #include @@ -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<