From: Bert Hubert Date: Thu, 14 Jul 2005 18:33:00 +0000 (+0000) Subject: ignore SIGPIPE, fix warning X-Git-Tag: pdns-2.9.18~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4389619a7358b4eaf0ed4c7d60a86ba2e96b917d;p=thirdparty%2Fpdns.git ignore SIGPIPE, fix warning git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@444 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 5fa60954f0..676b1ad93f 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -564,6 +564,7 @@ int main(int argc, char **argv) } signal(SIGUSR1,usr1Handler); signal(SIGUSR2,usr2Handler); + signal(SIGPIPE,SIG_IGN); writePid(); #endif @@ -587,7 +588,7 @@ int main(int argc, char **argv) vector tcpconnections; counter=0; - time_t now; + time_t now=0; unsigned int maxTcpClients=arg().asNum("max-tcp-clients"); for(;;) { while(MT->schedule()); // housekeeping, let threads do their thing