diff options
Diffstat (limited to 'astraceroute.c')
-rw-r--r-- | astraceroute.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/astraceroute.c b/astraceroute.c index 84c6649..c7c3514 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -168,6 +168,8 @@ static void signal_handler(int number) { switch (number) { case SIGINT: + case SIGQUIT: + case SIGTERM: sigint = 1; default: break; @@ -1089,6 +1091,8 @@ int main(int argc, char **argv) register_signal(SIGHUP, signal_handler); register_signal(SIGINT, signal_handler); + register_signal(SIGQUIT, signal_handler); + register_signal(SIGTERM, signal_handler); tprintf_init(); init_geoip(1); |