]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
exit(0) instead of (1) when the guardian is terminated by SIGTERM. Requested by Morte...
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 24 Sep 2012 11:53:28 +0000 (11:53 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 24 Sep 2012 11:53:28 +0000 (11:53 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2717 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/receiver.cc

index cc04046bb229a8b5c731a86f96f36e1cf6375a84..96e714c1aa44a03057528ec8d9ec922bef29cac2 100644 (file)
@@ -117,7 +117,7 @@ static void takedown(int i)
   if(cpid) {
     L<<Logger::Error<<"Guardian is killed, taking down children with us"<<endl;
     kill(cpid,SIGKILL);
-    exit(1);
+    exit(0);
   }
 }