Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-04-20 15:19:24 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-20 15:19:24 +0300
commit204f73a6927687367594e468981c8c60940e2bba (patch)
treea7af4fa1c17d365390fe9e9fe23a33bb5d66bad4 /main.go
parent641a7d3e57d690f14c0798b98a5df14055e3be01 (diff)
main.go enhancements
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 2ea3fb33..f56d3d24 100644
--- a/main.go
+++ b/main.go
@@ -51,8 +51,8 @@ func runWebServer() {
}
sigCh := make(chan os.Signal, 1)
- //信号量捕获处理
- signal.Notify(sigCh, syscall.SIGHUP, syscall.SIGTERM, syscall.SIGKILL)
+ // Trap shutdown signals
+ signal.Notify(sigCh, syscall.SIGHUP, syscall.SIGTERM)
for {
sig := <-sigCh