mirror of
https://github.com/TwiN/gatus.git
synced 2025-02-16 18:21:07 +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
|
// Wait for termination signal
|
||||||
sig := make(chan os.Signal, 1)
|
sig := make(chan os.Signal, 1)
|
||||||
done := make(chan bool, 1)
|
done := make(chan bool, 1)
|
||||||
signal.Notify(sig, os.Interrupt, os.Kill, syscall.SIGTERM)
|
signal.Notify(sig, os.Interrupt, syscall.SIGTERM)
|
||||||
go func() {
|
go func() {
|
||||||
<-sig
|
<-sig
|
||||||
log.Println("Received interruption signal, attempting to gracefully shut down")
|
log.Println("Received interruption signal, attempting to gracefully shut down")
|
||||||
|
Loading…
Reference in New Issue
Block a user