Readded SIGTERM handling into sigevent stuff. Fixes bugzilla #85.

This commit is contained in:
hasso 2004-03-22 08:55:25 +00:00
parent 37318657e5
commit f571dab0c6
6 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -72,6 +72,10 @@ struct quagga_signal_t bgp_signals[] =
.signal = SIGINT,
.handler = &sigint,
},
{
.signal = SIGTERM,
.handler = &sigint,
},
};
/* Configuration file and directory. */

View File

@ -163,6 +163,10 @@ struct quagga_signal_t ospf_signals[] =
.signal = SIGINT,
.handler = &sigint,
},
{
.signal = SIGTERM,
.handler = &sigint,
},
};
/* OSPFd main routine. */

View File

@ -172,6 +172,10 @@ struct quagga_signal_t ripd_signals[] =
.signal = SIGINT,
.handler = &sigint,
},
{
.signal = SIGTERM,
.handler = &sigint,
},
};
/* Main routine of ripd. */

View File

@ -175,6 +175,10 @@ struct quagga_signal_t ripng_signals[] =
.signal = SIGINT,
.handler = &sigint,
},
{
.signal = SIGTERM,
.handler = &sigint,
},
};
/* RIPngd main routine. */

View File

@ -176,6 +176,10 @@ struct quagga_signal_t zebra_signals[] =
.signal = SIGINT,
.handler = &sigint,
},
{
.signal = SIGTERM,
.handler = &sigint,
},
};
/* Main startup routine. */