mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
Fix restart
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user