summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trafgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/trafgen.c b/trafgen.c
index ea7d983..5e343e5 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -132,6 +132,8 @@ static void signal_handler(int number)
{
switch (number) {
case SIGINT:
+ case SIGQUIT:
+ case SIGTERM:
sigint = 1;
case SIGHUP:
default:
@@ -1076,6 +1078,8 @@ int main(int argc, char **argv)
panic("This is no networking device!\n");
register_signal(SIGINT, signal_handler);
+ register_signal(SIGQUIT, signal_handler);
+ register_signal(SIGTERM, signal_handler);
register_signal(SIGHUP, signal_handler);
register_signal_f(SIGALRM, timer_elapsed, SA_SIGINFO);