From 7eb6600aeb5226b0035616563fc560cb16b42df2 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Mon, 14 Sep 2020 20:55:52 +0100 Subject: 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. --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') 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]); -- cgit v1.2.3