summaryrefslogtreecommitdiff
path: root/bgpd/bgp_main.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-06-24 20:15:12 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-06-24 20:15:12 -0400
commit23ca3269da5f9d898cb54d42c560d519b9cb9915 (patch)
tree3bf7868cedd03d6157a51a51a7f393dd21db31b8 /bgpd/bgp_main.c
parentaf1b1edad45171b1b66c852c9e55d1550525f118 (diff)
bgpd: Have bgp ignore SIGHUP at the moment
SIGHUP is ostensibly supposed to reload configuration from a fresh slate. This is currently horribly broken so much so that bgp just crashes. I see no point in trying to make this work considering the yang work coming down the pike. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_main.c')
-rw-r--r--bgpd/bgp_main.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c
index f9ff99cab0..33eaf9ae74 100644
--- a/bgpd/bgp_main.c
+++ b/bgpd/bgp_main.c
@@ -126,8 +126,18 @@ static struct frr_daemon_info bgpd_di;
/* SIGHUP handler. */
void sighup(void)
{
- zlog_info("SIGHUP received");
-
+ zlog_info("SIGHUP received, ignoring");
+
+ return;
+
+ /*
+ * 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.
+ * 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();