]> granicus.if.org Git - pdns/commitdiff
fix return code; fix language
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 6 Oct 2015 09:24:37 +0000 (11:24 +0200)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 6 Oct 2015 09:24:37 +0000 (11:24 +0200)
pdns/distributor.hh

index 02f668f7d710aa580afeeb106939ce5958930f0d..b1d44e4e7b4c15490e16caf944b97247c5c28328 100644 (file)
@@ -148,8 +148,8 @@ template<class Answer, class Question, class Backend>MultiThreadDistributor<Answ
   }
   
   if (n<1) {
-    L<<Logger::Error<<"Asked for less than 1 threads, nothing to do"<<endl;
-    exit(0);
+    L<<Logger::Error<<"Asked for fewer than 1 threads, nothing to do"<<endl;
+    exit(1);
   }
 
   L<<Logger::Warning<<"About to create "<<n<<" backend threads for UDP"<<endl;