diff --git a/proxy/process.go b/proxy/process.go index 65354da..bb731da 100644 --- a/proxy/process.go +++ b/proxy/process.go @@ -296,7 +296,8 @@ func (p *Process) stopCommand(sigtermTTL time.Duration) { }() if p.cmd == nil || p.cmd.Process == nil { - panic("this should not happen, cmd or cmd.Process is nil") + fmt.Fprintf(p.logMonitor, "!!! process [%s] cmd or cmd.Process is nil", p.ID) + return } p.cmd.Process.Signal(syscall.SIGTERM)