This commit is contained in:
Pylogmon 2024-05-11 12:34:47 +08:00 committed by GitHub
parent 81dcfe0da7
commit 937b6940ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,7 +130,7 @@ func main() {
termSign := make(chan os.Signal, 1)
hupSign := make(chan os.Signal, 1)
signal.Notify(termSign, syscall.SIGINT, syscall.SIGTERM, syscall.SIGKILL)
signal.Notify(termSign, syscall.SIGINT, syscall.SIGTERM)
signal.Notify(hupSign, syscall.SIGHUP)
for {
select {