This commit is contained in:
crusader 2018-05-08 18:33:11 +09:00
parent 9317f5316d
commit c479442b6f

View File

@ -139,11 +139,11 @@ func (cs *ContainerSession) killContainer() error {
return nil
}
if nil == cs.cmd.ProcessState || !cs.cmd.ProcessState.Exited() {
if err := cs.cmd.Process.Kill(); nil != err {
return err
}
// if nil == cs.cmd.ProcessState || !cs.cmd.ProcessState.Exited() {
if err := cs.cmd.Process.Kill(); nil != err {
return err
}
// }
return nil
}