From ec1d21254dcceedbd3235b62576a3026c2d7d294 Mon Sep 17 00:00:00 2001 From: kingecg Date: Sun, 29 Jun 2025 17:29:28 +0800 Subject: [PATCH] =?UTF-8?q?"fix:=20=E4=B8=BA=E4=BF=A1=E5=8F=B7=E9=80=9A?= =?UTF-8?q?=E9=81=93=E6=B7=BB=E5=8A=A0=E7=BC=93=E5=86=B2=E5=8C=BA=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E9=98=BB=E5=A1=9E"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- godaemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godaemon.go b/godaemon.go index feb6a63..aac199f 100644 --- a/godaemon.go +++ b/godaemon.go @@ -84,7 +84,7 @@ func (g *GoDaemon) Start() { pid := os.Getpid() os.WriteFile(g.pidFile, []byte(strconv.Itoa(pid)), 0644) - g.sigChan = make(chan os.Signal) + g.sigChan = make(chan os.Signal, 1) signal.Notify(g.sigChan, syscall.SIGTERM, syscall.SIGHUP) go g.serveSignal()