mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 16:57:14 -06:00
Unify signal registration in a single syscall.
This commit is contained in:
parent
8db00073b4
commit
48e4de823a
@ -118,9 +118,7 @@ func listenToSystemSignels() {
|
||||
signalChan := make(chan os.Signal, 1)
|
||||
code := 0
|
||||
|
||||
signal.Notify(signalChan, os.Interrupt)
|
||||
signal.Notify(signalChan, os.Kill)
|
||||
signal.Notify(signalChan, syscall.SIGTERM)
|
||||
signal.Notify(signalChan, os.Interrupt, os.Kill, syscall.SIGTERM)
|
||||
|
||||
select {
|
||||
case sig := <-signalChan:
|
||||
|
Loading…
Reference in New Issue
Block a user