From 98cbd0f2e0b15130aada10d8efef9c688104eb66 Mon Sep 17 00:00:00 2001 From: Emanuele Di Pascale Date: Mon, 10 Dec 2018 12:02:32 +0100 Subject: [PATCH] isisd: implement sighup handler Signed-off-by: Emanuele Di Pascale --- isisd/isis_main.c | 15 +++++++++++++-- 1 file 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) { -- 2.39.2