From f571dab0c677ca4f3328ea944cc59ab2269c9a5d Mon Sep 17 00:00:00 2001 From: hasso Date: Mon, 22 Mar 2004 08:55:25 +0000 Subject: Readded SIGTERM handling into sigevent stuff. Fixes bugzilla #85. --- ChangeLog | 5 +++++ bgpd/bgp_main.c | 4 ++++ ospfd/ospf_main.c | 4 ++++ ripd/rip_main.c | 4 ++++ ripngd/ripng_main.c | 4 ++++ zebra/main.c | 4 ++++ 6 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index 075da2d1..143df370 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-22 Hasso Tepper + + * Readded SIGTERM handling so daemons can clean up their stuff if they + are killed (not murdered). + 2004-03-20 Michael Bruening * 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 0ba19c2f..54086e5b 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 43aa5a4f..d80aa26c 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 abe61067..530b13c9 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 d21ca307..eea47566 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 9966c172..efc95643 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. */ -- cgit v1.2.1