diff --git a/runtime/process.go b/runtime/process.go index eac5c3e..88f6d80 100644 --- a/runtime/process.go +++ b/runtime/process.go @@ -297,7 +297,9 @@ func (p *process) Start() error { } case <-p.cmdDoneCh: if !p.cmdSuccess { - cmd.Process.Kill() + if cmd.Process != nil { + cmd.Process.Kill() + } cmd.Wait() return ErrShimExited }