summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-14 20:55:52 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-14 20:59:02 +0100
commit7eb6600aeb5226b0035616563fc560cb16b42df2 (patch)
tree86808d23476924b6a839638c847bc79bbead28c3
parent7014d050d9738ae5ed8cd92e19a0cbb91d703025 (diff)
main: orderly shutdown on SIGINT too
the appropriate code in the signal handler was already set up, but for some reason the signal itself not being handled.
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7b702ab..0f445f6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -388,6 +388,7 @@ main (int argc, char **argv)
setup_sig (SIGCHLD, takesig, "SIGCHLD", argv[0]);
setup_sig (SIGTERM, takesig, "SIGTERM", argv[0]);
+ setup_sig (SIGINT, takesig, "SIGINT", argv[0]);
if (daemonized) setup_sig (SIGHUP, takesig, "SIGHUP", argv[0]);
setup_sig (SIGUSR1, takesig, "SIGUSR1", argv[0]);