Fix Wait() on process/tasks

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-21 13:32:56 -07:00
parent 8830866eed
commit 8b2cf6e8e6
15 changed files with 238 additions and 179 deletions

View File

@@ -78,6 +78,7 @@ func (p *process) Wait(ctx context.Context) (uint32, error) {
if err != nil {
return UnknownExitStatus, err
}
<-p.pidSync
for {
evt, err := events.Recv()
if err != nil {