summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhasso <hasso>2004-03-22 08:55:25 +0000
committerhasso <hasso>2004-03-22 08:55:25 +0000
commitf571dab0c677ca4f3328ea944cc59ab2269c9a5d (patch)
treedcdb8086dd98dd956b0ba9ba9479d4fc2bd3388a
parent37318657e5af8774a7a1446157f99496e887719f (diff)
Readded SIGTERM handling into sigevent stuff. Fixes bugzilla #85.
-rw-r--r--ChangeLog5
-rw-r--r--bgpd/bgp_main.c4
-rw-r--r--ospfd/ospf_main.c4
-rw-r--r--ripd/rip_main.c4
-rw-r--r--ripngd/ripng_main.c4
-rw-r--r--zebra/main.c4
6 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 075da2d1..143df370 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 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. */