From: Donald Sharp Date: Mon, 27 Jul 2020 10:54:23 +0000 (-0400) Subject: bgpd: Comment out dead code for future X-Git-Tag: base_7.5~154^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3130e2868685e7714aa1a90d83320df05addb3a3;p=matthieu%2Ffrr.git bgpd: Comment out dead code for future I wanted to preserve the old code flow to see what might be needed in the future in commit: 23ca3269da5f9d898cb54d42c560d519b9cb9915 Coverity doesn't like dead code. So let's comment it out. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 33eaf9ae74..b082aa9c6a 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -133,19 +133,20 @@ void sighup(void) /* * This is turned off for the moment. There is all * sorts of config turned off by bgp_terminate - * that is not setup properly again in bgp_rest. + * that is not setup properly again in bgp_reset. * I see no easy way to do this nor do I see that * this is a desirable way to reload config * given the yang work. */ /* Terminate all thread. */ - bgp_terminate(); - bgp_reset(); - zlog_info("bgpd restarting!"); - - /* Reload config file. */ - vty_read_config(NULL, bgpd_di.config_file, config_default); + /* + * bgp_terminate(); + * bgp_reset(); + * zlog_info("bgpd restarting!"); + * Reload config file. + * vty_read_config(NULL, bgpd_di.config_file, config_default); + */ /* Try to return to normal operation. */ }