mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-20 08:35:11 +01:00
feat(idlewatcher): add SIGKILL to valid stop signals
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user