]> granicus.if.org Git - pdns/commitdiff
and two exits() should really be _exit() in distributor.hh too (fixed the other ones...
authorbert hubert <bert.hubert@netherlabs.nl>
Tue, 7 Nov 2017 08:50:35 +0000 (09:50 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Tue, 7 Nov 2017 08:50:35 +0000 (09:50 +0100)
pdns/distributor.hh

index e0fdfc08b603db8b703c9a4bfa144060c3e15d40..1ffc2a904a9d45d0afa69349a81f33ac137d6f34 100644 (file)
@@ -130,11 +130,11 @@ template<class Answer, class Question, class Backend>SingleThreadDistributor<Ans
   }
   catch(const PDNSException &AE) {
     L<<Logger::Error<<"Distributor caught fatal exception: "<<AE.reason<<endl;
-    exit(1);
+    _exit(1);
   }
   catch(...) {
     L<<Logger::Error<<"Caught an unknown exception when creating backend, probably"<<endl;
-    exit(1);
+    _exit(1);
   }
 }
 
@@ -158,7 +158,7 @@ template<class Answer, class Question, class Backend>MultiThreadDistributor<Answ
   
   if (n<1) {
     L<<Logger::Error<<"Asked for fewer than 1 threads, nothing to do"<<endl;
-    exit(1);
+    _exit(1);
   }
 
   L<<Logger::Warning<<"About to create "<<n<<" backend threads for UDP"<<endl;
@@ -250,11 +250,11 @@ retry:
   }
   catch(const PDNSException &AE) {
     L<<Logger::Error<<"Distributor caught fatal exception: "<<AE.reason<<endl;
-    exit(1);
+    _exit(1);
   }
   catch(...) {
     L<<Logger::Error<<"Caught an unknown exception when creating backend, probably"<<endl;
-    exit(1);
+    _exit(1);
   }
   return 0;
 }