summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ifpps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ifpps.c b/ifpps.c
index ff9eaad..6c0387b 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -96,6 +96,8 @@ static void signal_handler(int number)
{
switch (number) {
case SIGINT:
+ case SIGQUIT:
+ case SIGTERM:
sigint = 1;
break;
case SIGHUP:
@@ -1401,6 +1403,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(SIGSTOP, signal_handler);
register_signal(SIGHUP, signal_handler);
cpus = get_number_cpus();