Permalink
Browse files

prevent crash at starup if lua script has an error AND we are powerin…

…g up the webserver simultaneously
  • Loading branch information...
1 parent 14a3b6a commit 62f0ae62984adadab687c23fe1b287c1f219b2cb @ahupowerdns ahupowerdns committed Jan 9, 2015
Showing with 1 addition and 2 deletions.
  1. +1 −2 pdns/pdns_recursor.cc
@@ -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>();

0 comments on commit 62f0ae6

Please sign in to comment.