mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 17:58:45 +02: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 {
|
func (c *IdlewatcherConfig) validateStopSignal() error {
|
||||||
switch c.StopSignal {
|
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
|
return nil
|
||||||
default:
|
default:
|
||||||
return gperr.PrependSubject(ErrInvalidStopSignal, string(c.StopSignal))
|
return gperr.PrependSubject(ErrInvalidStopSignal, string(c.StopSignal))
|
||||||
|
|||||||
Reference in New Issue
Block a user