Browse Source

Allow trampling stopped processes

pull/55/head
Jae Kwon 10 years ago
parent
commit
5b9dbddc7b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cmd/barak/main.go

+ 1
- 1
cmd/barak/main.go 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' // First, see if there already is a process labeled 'label'
existing := barak.processes[label] existing := barak.processes[label]
if existing != nil {
if existing != nil && existing.EndTime.IsZero() {
barak.mtx.Unlock() barak.mtx.Unlock()
return nil, fmt.Errorf("Process already exists: %v", label) return nil, fmt.Errorf("Process already exists: %v", label)
} }


Loading…
Cancel
Save