mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-21 23:43:27 +01:00
Remove useless os.Kill because it cannot be caught
This commit is contained in:
parent
d000460a99
commit
404a3cea64
2
main.go
2
main.go
@ -19,7 +19,7 @@ func main() {
|
||||
// Wait for termination signal
|
||||
sig := make(chan os.Signal, 1)
|
||||
done := make(chan bool, 1)
|
||||
signal.Notify(sig, os.Interrupt, os.Kill, syscall.SIGTERM)
|
||||
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
|
||||
go func() {
|
||||
<-sig
|
||||
log.Println("Received interruption signal, attempting to gracefully shut down")
|
||||
|
Loading…
Reference in New Issue
Block a user