diff options
Diffstat (limited to 'ospfd/ospf_main.c')
-rw-r--r-- | ospfd/ospf_main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index 483b6387..3225d7d7 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -136,15 +136,12 @@ sighup (void) zlog (NULL, LOG_INFO, "SIGHUP received"); } -/* SIGINT handler. */ -static void __attribute__ ((noreturn)) +/* SIGINT / SIGTERM handler. */ +static void sigint (void) { zlog_notice ("Terminating on signal"); - ospf_terminate (); - - exit (0); } /* SIGUSR1 handler. */ |