Skip to content

Commit 2e4f1ae

Browse files
committed
Merge pull request #240 from crosbymichael/wait
Reap process after sending kill signal
2 parents f58407d + 9b6e1b4 commit 2e4f1ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/executor/exec_linux.go

+5
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,11 @@ func (e *LinuxExecutor) destroyCgroup() error {
542542
multierror.Append(errs, fmt.Errorf("Failed to kill Pid %v: %v", pid, err))
543543
continue
544544
}
545+
546+
if _, err := process.Wait(); err != nil {
547+
multierror.Append(errs, fmt.Errorf("Failed to wait Pid %v: %v", pid, err))
548+
continue
549+
}
545550
}
546551

547552
// Remove the cgroup.

0 commit comments

Comments
 (0)