From 7fc6c4ace1a5dcdd4188a62502cfcbb5460b08c2 Mon Sep 17 00:00:00 2001 From: yusing Date: Wed, 11 Feb 2026 12:34:50 +0800 Subject: [PATCH] feat(idlewatcher): add SIGKILL to valid stop signals --- internal/types/idlewatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/types/idlewatcher.go b/internal/types/idlewatcher.go index e9bfa6fe..f00e02d0 100644 --- a/internal/types/idlewatcher.go +++ b/internal/types/idlewatcher.go @@ -132,7 +132,7 @@ func (c *IdlewatcherConfig) validateStopMethod() error { func (c *IdlewatcherConfig) validateStopSignal() error { switch c.StopSignal { - case "", "SIGINT", "SIGTERM", "SIGQUIT", "SIGHUP", "INT", "TERM", "QUIT", "HUP": + case "", "SIGINT", "SIGTERM", "SIGKILL", "SIGQUIT", "SIGHUP", "INT", "TERM", "KILL", "QUIT", "HUP": return nil default: return gperr.PrependSubject(ErrInvalidStopSignal, string(c.StopSignal))