Added a comment

This commit is contained in:
Diptanu Choudhury
2016-03-02 11:44:40 -08:00
parent c4b048df5e
commit 71fb58cea0
2 changed files with 4 additions and 7 deletions

View File

@@ -196,6 +196,9 @@ func DestroyCgroup(groups *cgroupConfig.Cgroup) error {
manager := getCgroupManager(groups)
if pids, perr := manager.GetPids(); perr == nil {
for _, pid := range pids {
// If the pid is the pid of the executor then we don't kill it, the
// executor is going to be killed by the driver once the Wait
// returns
if pid == os.Getpid() {
continue
}