diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | bgpd/bgp_main.c | 4 | ||||
-rw-r--r-- | ospfd/ospf_main.c | 4 | ||||
-rw-r--r-- | ripd/rip_main.c | 4 | ||||
-rw-r--r-- | ripngd/ripng_main.c | 4 | ||||
-rw-r--r-- | zebra/main.c | 4 |
6 files changed, 25 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2004-03-22 Hasso Tepper <hasso@estpak.ee> + + * Readded SIGTERM handling so daemons can clean up their stuff if they + are killed (not murdered). + 2004-03-20 Michael Bruening <mike@vailsys.com> * ospfd/ospf_vty.c: Completed array distribute_str of route types with diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 0ba19c2ff..54086e5b2 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -72,6 +72,10 @@ struct quagga_signal_t bgp_signals[] = .signal = SIGINT, .handler = &sigint, }, + { + .signal = SIGTERM, + .handler = &sigint, + }, }; /* Configuration file and directory. */ diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index 43aa5a4fd..d80aa26c3 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -163,6 +163,10 @@ struct quagga_signal_t ospf_signals[] = .signal = SIGINT, .handler = &sigint, }, + { + .signal = SIGTERM, + .handler = &sigint, + }, }; /* OSPFd main routine. */ diff --git a/ripd/rip_main.c b/ripd/rip_main.c index abe610672..530b13c95 100644 --- a/ripd/rip_main.c +++ b/ripd/rip_main.c @@ -172,6 +172,10 @@ struct quagga_signal_t ripd_signals[] = .signal = SIGINT, .handler = &sigint, }, + { + .signal = SIGTERM, + .handler = &sigint, + }, }; /* Main routine of ripd. */ diff --git a/ripngd/ripng_main.c b/ripngd/ripng_main.c index d21ca307a..eea47566b 100644 --- a/ripngd/ripng_main.c +++ b/ripngd/ripng_main.c @@ -175,6 +175,10 @@ struct quagga_signal_t ripng_signals[] = .signal = SIGINT, .handler = &sigint, }, + { + .signal = SIGTERM, + .handler = &sigint, + }, }; /* RIPngd main routine. */ diff --git a/zebra/main.c b/zebra/main.c index 9966c1728..efc956433 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -176,6 +176,10 @@ struct quagga_signal_t zebra_signals[] = .signal = SIGINT, .handler = &sigint, }, + { + .signal = SIGTERM, + .handler = &sigint, + }, }; /* Main startup routine. */ |