Allow trampling stopped processes

This commit is contained in:
Jae Kwon 2015-04-16 10:13:50 -07:00
parent 9ec6258ed0
commit 5b9dbddc7b
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}