From 5b9dbddc7b4688ed4f416befe7f47d7e31dd64e7 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Thu, 16 Apr 2015 10:13:50 -0700 Subject: [PATCH] Allow trampling stopped processes --- cmd/barak/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/barak/main.go b/cmd/barak/main.go index f363e04fc..699424474 100644 --- a/cmd/barak/main.go +++ b/cmd/barak/main.go @@ -149,7 +149,7 @@ func RunProcess(wait bool, label string, execPath string, args []string, input s // First, see if there already is a process labeled 'label' existing := barak.processes[label] - if existing != nil { + if existing != nil && existing.EndTime.IsZero() { barak.mtx.Unlock() return nil, fmt.Errorf("Process already exists: %v", label) }