Skip to content

Commit

Permalink
Merge pull request #240 from crosbymichael/wait
Browse files Browse the repository at this point in the history
Reap process after sending kill signal
  • Loading branch information
dadgar committed Oct 9, 2015
2 parents f58407d + 9b6e1b4 commit 2e4f1ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/executor/exec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,11 @@ func (e *LinuxExecutor) destroyCgroup() error {
multierror.Append(errs, fmt.Errorf("Failed to kill Pid %v: %v", pid, err))
continue
}

if _, err := process.Wait(); err != nil {
multierror.Append(errs, fmt.Errorf("Failed to wait Pid %v: %v", pid, err))
continue
}
}

// Remove the cgroup.
Expand Down

0 comments on commit 2e4f1ae

Please sign in to comment.