From c2e0bef26ed7045bdac4d26dd2f235a4522d3010 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 21 Aug 2022 15:01:04 +0200 Subject: [PATCH] src/main.go: in eventLoop() combine SIGINT and SIGTERM handling, they have the same functionality. --- src/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main.go b/src/main.go index d063096..6177396 100644 --- a/src/main.go +++ b/src/main.go @@ -89,10 +89,7 @@ func signalEventLoop() { l := logger.New("signal", sig) switch sig { - case syscall.SIGINT : - l.Info("Interrupted") - run = false - case syscall.SIGTERM : + case syscall.SIGINT, syscall.SIGTERM : l.Info("Program was asked to terminate.") run = false // SIGHUP is sent when logfile is rotated.