Fix restart

This commit is contained in:
Nicolas Grilly
2016-03-21 13:09:44 +01:00
parent 2d077d99e7
commit 9372bb8def
+3 -1
View File
@@ -165,7 +165,9 @@ func (f *Forego) startProcess(idx, procNum int, proc ProcfileEntry, env Env, of
// Prevent goroutine from exiting before process has finished.
defer func() { <-finished }()
defer f.teardown.Fall()
if !flagRestart {
defer f.teardown.Fall()
}
select {
case <-finished: