mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Merge pull request #240 from crosbymichael/wait
Reap process after sending kill signal
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user