From: bert hubert Date: Thu, 11 Dec 2014 08:41:58 +0000 (+0100) Subject: make qsize-q more robust X-Git-Tag: rec-3.7.0-rc1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf07cf471b5c93394717aa1f8535e52284e2121;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