mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
Added a comment
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user