diff --git a/client/client.go b/client/client.go index 57783bf..af2feb7 100644 --- a/client/client.go +++ b/client/client.go @@ -447,7 +447,18 @@ func NewClient(standalone bool) (HoustonClient, error) { } }() - hc.shutdownFunc = cancel + hc.shutdownFunc = func() { + // child process 강제 종료 + for _, procmeta := range hc.childProcs { + if procmeta.cmd != nil && procmeta.cmd.Process != nil { + procmeta.cmd.Process.Signal(os.Kill) + procmeta.cmd.Process.Wait() + procmeta.cmd.Process.Release() + } + } + cancel() + } + hc.exitChan = exitChan hc.ctx = ctx hc.operationChan = operationChan