]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't exit 0 on failure 1948/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Dec 2014 13:16:30 +0000 (14:16 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Dec 2014 13:16:30 +0000 (14:16 +0100)
pdns/communicator.cc

index 41e7e56ca7027d8fcd8b111b2644284e83e0593b..b2b29b6b9da0082259f22fb982642bef4da61794 100644 (file)
@@ -68,7 +68,7 @@ void CommunicatorClass::go()
   }
   catch(PDNSException &e) {
     L<<Logger::Error<<"Unparseable IP in only-notify. Error: "<<e.reason<<endl;
-    exit(0);
+    exit(1);
   }
 
   vector<string> parts;
@@ -80,7 +80,7 @@ void CommunicatorClass::go()
     }
     catch(PDNSException &e) {
       L<<Logger::Error<<"Unparseable IP in also-notify. Error: "<<e.reason<<endl;
-      exit(0);
+      exit(1);
     }
   }
 }
@@ -122,16 +122,16 @@ void CommunicatorClass::mainloop(void)
   catch(PDNSException &ae) {
     L<<Logger::Error<<"Exiting because communicator thread died with error: "<<ae.reason<<endl;
     Utility::sleep(1);
-    exit(0);
+    exit(1);
   }
   catch(std::exception &e) {
     L<<Logger::Error<<"Exiting because communicator thread died with STL error: "<<e.what()<<endl;
-    exit(0);
+    exit(1);
   }
   catch( ... )
   {
     L << Logger::Error << "Exiting because communicator caught unknown exception." << endl;
-    exit( 0 );
+    exit(1);
   }
 }