summaryrefslogtreecommitdiff
path: root/flowtop.c
diff options
context:
space:
mode:
Diffstat (limited to 'flowtop.c')
-rw-r--r--flowtop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/flowtop.c b/flowtop.c
index d0b9a80..5b0a88c 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -211,6 +211,8 @@ static void signal_handler(int number)
{
switch (number) {
case SIGINT:
+ case SIGQUIT:
+ case SIGTERM:
sigint = 1;
break;
case SIGHUP:
@@ -1171,6 +1173,8 @@ int main(int argc, char **argv)
rcu_init();
register_signal(SIGINT, signal_handler);
+ register_signal(SIGQUIT, signal_handler);
+ register_signal(SIGTERM, signal_handler);
register_signal(SIGHUP, signal_handler);
init_geoip(1);