changeset 4168:3ef3f8a99d5e

Don't trap SIGKILL. This is handled by the OS. Found by staticcheck.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 05 Aug 2019 16:07:56 +0200
parents 8d6f43894f09
children 91f4b3f56ce2
files cmd/gemma/main.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd/gemma/main.go	Mon Aug 05 15:55:58 2019 +0200
+++ b/cmd/gemma/main.go	Mon Aug 05 16:07:56 2019 +0200
@@ -92,7 +92,7 @@
 	}()
 
 	sigChan := make(chan os.Signal, 1)
-	signal.Notify(sigChan, os.Interrupt, os.Kill, syscall.SIGTERM)
+	signal.Notify(sigChan, os.Interrupt, syscall.SIGTERM)
 
 	select {
 	case err := <-done: