From: hasso Date: Mon, 22 Mar 2004 08:55:25 +0000 (+0000) Subject: Readded SIGTERM handling into sigevent stuff. Fixes bugzilla #85. X-Git-Tag: frr-2.0-rc1~3761 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f571dab0c677ca4f3328ea944cc59ab2269c9a5d;p=matthieu%2Ffrr.git Readded SIGTERM handling into sigevent stuff. Fixes bugzilla #85. --- diff --git a/ChangeLog b/ChangeLog index 075da2d1d6..143df370e2 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 0ba19c2ff7..54086e5b2b 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 43aa5a4fd1..d80aa26c34 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 abe6106725..530b13c959 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 d21ca307a8..eea47566bc 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 9966c1728f..efc956433f 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. */