From 4a966472f901c20764e1d3ba1e178a9fb50b1f89 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 5 Jun 2015 23:00:48 +0200 Subject: [PATCH] fix crash on error, plus add addDelay() to autocomplete --- pdns/dnsdist.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index c73620f2ef..d373e7c39b 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -888,7 +888,7 @@ char* my_generator(const char* text, int state) vector words{"showRules()", "shutdown()", "rmRule(", "mvRule(", "addACL(", "addLocal(", "setServerPolicy(", "setServerPolicyLua(", "newServer(", "rmServer(", "showServers()", "show(", "newDNSName(", "newSuffixMatchNode(", "controlSocket(", "topClients(", "showResponseLatency()", "newQPSLimiter(", "makeKey()", "setKey(", "testCrypto()", "addAnyTCRule()", "showServerPolicy()", "setACL(", "showACL()", "addDomainBlock(", - "addPoolRule(", "addQPSLimit(", "topResponses(", "topQueries(", "topRule()", "setDNSSECPool("}; + "addPoolRule(", "addQPSLimit(", "topResponses(", "topQueries(", "topRule()", "setDNSSECPool(", "addDelay("}; static int s_counter=0; int counter=0; if(!state) @@ -1142,8 +1142,10 @@ try catch(std::exception &e) { errlog("Fatal error: %s", e.what()); + _exit(EXIT_FAILURE); } catch(PDNSException &ae) { errlog("Fatal pdns error: %s", ae.reason); + _exit(EXIT_FAILURE); } -- 2.47.2