Lint: replace os.Kill trap with syscall.SIGTERM

This commit is contained in:
Dan Sosedoff 2022-11-14 15:43:34 -06:00
parent added3bb42
commit 685c222b9d
No known key found for this signature in database
GPG Key ID: 26186197D282B164

View File

@ -7,6 +7,7 @@ import (
"os/signal"
"regexp"
"strings"
"syscall"
"github.com/gin-gonic/gin"
"github.com/jessevdk/go-flags"
@ -203,7 +204,7 @@ func startServer() {
func handleSignals() {
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, os.Kill)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
<-c
}