summaryrefslogtreecommitdiffstats
path: root/isisd/isis_main.c
diff options
context:
space:
mode:
authorEmanuele Di Pascale <emanuele@voltanet.io>2018-12-10 12:02:32 +0100
committerEmanuele Di Pascale <emanuele@voltanet.io>2018-12-18 15:24:46 +0100
commit98cbd0f2e0b15130aada10d8efef9c688104eb66 (patch)
tree27538d38d3a10172bc2a6cf04d9d106e83463b88 /isisd/isis_main.c
parentisisd, yang: change type empty leafs to booleans (diff)
downloadfrr-98cbd0f2e0b15130aada10d8efef9c688104eb66.tar.xz
frr-98cbd0f2e0b15130aada10d8efef9c688104eb66.zip
isisd: implement sighup handler
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to '')
-rw-r--r--isisd/isis_main.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/isisd/isis_main.c b/isisd/isis_main.c
index 40c483a0d..9126e40d4 100644
--- a/isisd/isis_main.c
+++ b/isisd/isis_main.c
@@ -107,12 +107,23 @@ static __attribute__((__noreturn__)) void terminate(int i)
/*
* Signal handlers
*/
-
+#ifdef FABRICD
void sighup(void)
{
- zlog_notice("SIGHUP/reload is not implemented for isisd");
+ zlog_notice("SIGHUP/reload is not implemented for fabricd");
return;
}
+#else
+static struct frr_daemon_info isisd_di;
+void sighup(void)
+{
+ zlog_info("SIGHUP received");
+
+ /* Reload config file. */
+ vty_read_config(NULL, isisd_di.config_file, config_default);
+}
+
+#endif
__attribute__((__noreturn__)) void sigint(void)
{