feat(idlewatcher): add SIGKILL to valid stop signals

This commit is contained in:
yusing
2026-02-11 12:34:50 +08:00
parent c9bae6e3a0
commit 7fc6c4ace1

View File

@@ -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))