From c003a924084904e3295c403e2d424642680b76ab Mon Sep 17 00:00:00 2001 From: John Date: Fri, 14 Dec 2018 10:11:05 +0800 Subject: [PATCH] remove HANGUP signal handle of Web Server admin --- g/net/ghttp/ghttp_server_admin_unix.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/g/net/ghttp/ghttp_server_admin_unix.go b/g/net/ghttp/ghttp_server_admin_unix.go index 96fc28049..06b18fd94 100644 --- a/g/net/ghttp/ghttp_server_admin_unix.go +++ b/g/net/ghttp/ghttp_server_admin_unix.go @@ -25,7 +25,6 @@ func handleProcessSignal() { syscall.SIGINT, syscall.SIGQUIT, syscall.SIGKILL, - syscall.SIGHUP, syscall.SIGTERM, syscall.SIGUSR1, syscall.SIGUSR2, @@ -34,7 +33,7 @@ func handleProcessSignal() { sig = <- procSignalChan switch sig { // 进程终止,停止所有子进程运行 - case syscall.SIGINT, syscall.SIGQUIT, syscall.SIGKILL, syscall.SIGHUP, syscall.SIGTERM: + case syscall.SIGINT, syscall.SIGQUIT, syscall.SIGKILL, syscall.SIGTERM: shutdownWebServers(sig.String()) return