]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
ignore SIGPIPE, fix warning
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 14 Jul 2005 18:33:00 +0000 (18:33 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 14 Jul 2005 18:33:00 +0000 (18:33 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@444 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdns_recursor.cc

index 5fa60954f03a1ee22d739f4cd8b96f1dd53b039f..676b1ad93f86d21f25adbadd143942f2c12be34b 100644 (file)
@@ -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<TCPConnection> 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