]> git.proxmox.com Git - mirror_frr.git/commitdiff
isisd: implement sighup handler
authorEmanuele Di Pascale <emanuele@voltanet.io>
Mon, 10 Dec 2018 11:02:32 +0000 (12:02 +0100)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 18 Dec 2018 14:24:46 +0000 (15:24 +0100)
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
isisd/isis_main.c

index 40c483a0dbc05330298a5dead4ca980a205759ab..9126e40d4233a0fd0d1dbbe47975cbc929812ecd 100644 (file)
@@ -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)
 {