]> granicus.if.org Git - pdns/commitdiff
prevent crash at starup if lua script has an error AND we are powering up the webserv...
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 9 Jan 2015 13:32:21 +0000 (14:32 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Fri, 9 Jan 2015 13:32:21 +0000 (14:32 +0100)
pdns/pdns_recursor.cc

index 5a2e2c25184507abcf5a9deca28dddbcb2e5bbf9..5cda0f0f4f47dd7476669a4d8714eec9385df035 100644 (file)
@@ -2066,11 +2066,10 @@ try
       *t_pdl = shared_ptr<RecursorLua>(new RecursorLua(::arg()["lua-dns-script"]));
       L<<Logger::Warning<<"Loaded 'lua' script from '"<<::arg()["lua-dns-script"]<<"'"<<endl;
     }
-    
   }
   catch(std::exception &e) {
     L<<Logger::Error<<"Failed to load 'lua' script from '"<<::arg()["lua-dns-script"]<<"': "<<e.what()<<endl;
-    exit(99);
+    _exit(99);
   }
   
   t_traceRegex = new shared_ptr<Regex>();