Commit 6218fadf by Mario Trangoni

pkg/cmd/grafana-server/main.go: remove os.Kill as it cannot be trapped

See,
$ gometalinter --vendor --deadline 10m --disable-all --enable=megacheck ./...
pkg/cmd/grafana-server/main.go:103:42:warning: os.Kill cannot be trapped (did you mean syscall.SIGTERM?) (SA1016) (megacheck)
parent d17025fb
...@@ -100,7 +100,7 @@ func listenToSystemSignals(server *GrafanaServerImpl) { ...@@ -100,7 +100,7 @@ func listenToSystemSignals(server *GrafanaServerImpl) {
sighupChan := make(chan os.Signal, 1) sighupChan := make(chan os.Signal, 1)
signal.Notify(sighupChan, syscall.SIGHUP) signal.Notify(sighupChan, syscall.SIGHUP)
signal.Notify(signalChan, os.Interrupt, os.Kill, syscall.SIGTERM) signal.Notify(signalChan, os.Interrupt, syscall.SIGTERM)
for { for {
select { select {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment