diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-14 20:55:52 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-14 20:59:02 +0100 |
commit | 7eb6600aeb5226b0035616563fc560cb16b42df2 (patch) | |
tree | 86808d23476924b6a839638c847bc79bbead28c3 | |
parent | 7014d050d9738ae5ed8cd92e19a0cbb91d703025 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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]); |