Merge pull request #240 from crosbymichael/wait

Reap process after sending kill signal
This commit is contained in:
Alex Dadgar
2015-10-08 17:10:23 -07:00

View File

@@ -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.