summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_main.c
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2016-09-24 15:09:36 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-30 18:57:05 +0200
commit90dcf2d7772977e842ab3927d2508e3401fbce45 (patch)
tree626f4896060f3d1841dd5af5d57e60d7153e214b /bgpd/bgp_main.c
parentbgpd: remove old/duplicate, and now out of order prefixlen test (diff)
downloadfrr-90dcf2d7772977e842ab3927d2508e3401fbce45.tar.xz
frr-90dcf2d7772977e842ab3927d2508e3401fbce45.zip
bgp debug: restore printing of memstats on exit, now prints if any debug flag set
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r--bgpd/bgp_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index 68d6cb7f3..404fe7d73 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -296,6 +296,8 @@ bgp_exit (int status)
if (zlog_default)
closezlog (zlog_default);
+ if (bgp_debug_count())
+ log_memstats_stderr ("bgpd");
exit (status);
}