houston 종료시 kill signal 보냄
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user