Merge pull request #78 from gardentechno/master

Fix restart
This commit is contained in:
David Dollar
2016-03-21 09:35:25 -04:00
2 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -2,14 +2,13 @@ sudo: false
language: go
go:
- 1.3.1
- 1.6
env:
global:
- PATH=$HOME/gopath/bin:$PATH
before_install:
- go get code.google.com/p/go.tools/cmd/cover
- go get github.com/tools/godep
- godep restore
+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: