Avoid panicing if cmd.Start()
from container.createCmd()
failed (#305)
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
403ccb155b
commit
526a861988
1 changed files with 3 additions and 1 deletions
|
@ -297,7 +297,9 @@ func (p *process) Start() error {
|
|||
}
|
||||
case <-p.cmdDoneCh:
|
||||
if !p.cmdSuccess {
|
||||
if cmd.Process != nil {
|
||||
cmd.Process.Kill()
|
||||
}
|
||||
cmd.Wait()
|
||||
return ErrShimExited
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue