Skip to content

Commit

Permalink
Fix zombie processes by calling Wait after Command.Run
Browse files Browse the repository at this point in the history
  • Loading branch information
mckelvin committed Mar 8, 2017
1 parent e6d98c9 commit 9cb2ed1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/tasks/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ func (t *task) updateRepository() error {
}

t.logCmd(cmd)
defer cmd.Wait()
return cmd.Run()
}

Expand All @@ -277,6 +278,7 @@ func (t *task) runGalaxy() error {
}

t.logCmd(cmd)
defer cmd.Wait()
return cmd.Run()
}

Expand Down Expand Up @@ -327,6 +329,7 @@ func (t *task) runPlaybook() error {
cmd.Env = t.envVars(util.Config.TmpPath, cmd.Dir, nil)

t.logCmd(cmd)
defer cmd.Wait()
return cmd.Run()
}

Expand Down

0 comments on commit 9cb2ed1

Please sign in to comment.