houston 종료시 kill signal 보냄

This commit is contained in:
2023-12-05 18:54:42 +09:00
parent 68a5876fd8
commit ccfa9e4be3

View File

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