diff --git a/pkg/tasks/tasks.go b/pkg/tasks/tasks.go index e062b6181..26846c439 100644 --- a/pkg/tasks/tasks.go +++ b/pkg/tasks/tasks.go @@ -59,7 +59,7 @@ func (m *ViewBufferManager) NewCmdTask(cmd *exec.Cmd, linesToRead int) func(chan go func() { <-stop - if cmd.ProcessState.ExitCode() == -1 { + if cmd.ProcessState == nil { if err := kill(cmd); err != nil { m.Log.Warn(err) }