From: bert hubert Date: Thu, 11 Dec 2014 08:41:58 +0000 (+0100) Subject: make qsize-q more robust X-Git-Tag: auth-3.4.2~15^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=796321c838ec6485005a4eb2ca5fcd969c42ad9c;p=thirdparty%2Fpdns.git make qsize-q more robust --- diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 86bba3fbbc..3e81ba46c5 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -187,6 +187,7 @@ static uint64_t getSysUserTimeMsec(const std::string& str) } static uint64_t getQCount(const std::string& str) +try { int totcount=0; BOOST_FOREACH(DNSDistributor* d, g_distributors) { @@ -196,6 +197,16 @@ static uint64_t getQCount(const std::string& str) } return totcount; } +catch(std::exception& e) +{ + L<(n)); // receives packets