Fix zombie sub processes.

For https://github.com/oxequa/realize/issues/192
This commit is contained in:
Alain Gilbert 2018-06-28 13:42:08 -07:00
parent 29c29e429a
commit cc4cb7eb64
No known key found for this signature in database
GPG Key ID: 46DD7443DEDB830D
1 changed files with 1 additions and 0 deletions

View File

@ -573,6 +573,7 @@ func (p *Project) run(path string, stream chan Response, stop <-chan bool) (err
// https://github.com/golang/go/issues/6720
if build != nil {
build.Process.Signal(os.Interrupt)
build.Process.Wait()
}
}()