Merge pull request #29 from pwaller/protect-start

Check ps.Start() error
This commit is contained in:
David Dollar
2014-06-19 18:55:05 -04:00
+6 -1
View File
@@ -126,7 +126,12 @@ func (f *Forego) startProcess(idx, procNum int, proc ProcfileEntry, env Env, of
finished := make(chan struct{}) // closed on process exit
ps.Start()
err = ps.Start()
if err != nil {
f.teardown.Fall()
of.SystemOutput(fmt.Sprint("Failed to start ", procName, ": ", err))
return
}
f.wg.Add(1)
go func() {