From 796321c838ec6485005a4eb2ca5fcd969c42ad9c Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 11 Dec 2014 09:41:58 +0100 Subject: [PATCH] make qsize-q more robust --- pdns/common_startup.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- 2.47.2