diff --git a/pkg/unikontainers/unikontainers.go b/pkg/unikontainers/unikontainers.go index fc297f93..93f62d7d 100644 --- a/pkg/unikontainers/unikontainers.go +++ b/pkg/unikontainers/unikontainers.go @@ -1293,6 +1293,9 @@ func (u *Unikontainer) SendMessage(message IPCMessage) error { func (u *Unikontainer) isRunning() bool { vmmType := hypervisors.VmmType(u.State.Annotations[annotHypervisor]) if vmmType != hypervisors.HedgeVmm { + if u.State.Pid <= 0 { + return false + } return syscall.Kill(u.State.Pid, syscall.Signal(0)) == nil } hedge := hypervisors.Hedge{}