중지된 프로세스는 목록에서 제거
This commit is contained in:
@ -202,13 +202,16 @@ func NewClient(grpcAddr string, httpAddr string) (HoustonClient, error) {
|
|||||||
return
|
return
|
||||||
|
|
||||||
case exited := <-exitChan:
|
case exited := <-exitChan:
|
||||||
|
var newprocs []*procmeta
|
||||||
for _, proc := range hc.childProcs {
|
for _, proc := range hc.childProcs {
|
||||||
if proc.cmd == exited && proc.state != protos.ProcessState_Stopped {
|
if proc.cmd == exited && proc.state != protos.ProcessState_Stopped {
|
||||||
proc.state = protos.ProcessState_Stopped
|
proc.state = protos.ProcessState_Stopped
|
||||||
op.Refresh(ctx, hc.makeOperationQueryRequest())
|
} else {
|
||||||
break
|
newprocs = append(newprocs, proc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
hc.childProcs = newprocs
|
||||||
|
op.Refresh(ctx, hc.makeOperationQueryRequest())
|
||||||
|
|
||||||
case resp := <-operationChan:
|
case resp := <-operationChan:
|
||||||
switch shared.Operation(resp.Operation) {
|
switch shared.Operation(resp.Operation) {
|
||||||
|
|||||||
Reference in New Issue
Block a user