1
0
mirror of https://github.com/MetaCubeX/mihomo.git synced 2025-09-19 12:06:01 +08:00

Chore: adjust the signal

This commit is contained in:
yaling888
2022-03-22 18:40:33 +08:00
parent ac4cde1411
commit f4312cfa5a
2 changed files with 7 additions and 6 deletions

View File

@ -101,7 +101,7 @@ func main() {
}
sigCh := make(chan os.Signal, 1)
signal.Notify(sigCh, syscall.SIGHUP, syscall.SIGINT, syscall.SIGTERM)
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)
<-sigCh
// cleanup