Skip to content

Commit

Permalink
fix: cgroups load failed, cgroups: cgroup delete:
Browse files Browse the repository at this point in the history
Signed-off-by: tiny-x <[email protected]>
  • Loading branch information
tiny-x committed May 19, 2023
1 parent cf6ddbb commit a44cf31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec/executor_common_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (r *CommonExecutor) Exec(uid string, ctx context.Context, expModel *spec.Ex
}

cgroupRoot := os.Getenv("CGROUP_ROOT")
if cgroupRoot != "" {
if cgroupRoot != "" && expModel.ActionProcessHang {
expModel.ActionFlags["cgroup-root"] = cgroupRoot
}

Expand Down

0 comments on commit a44cf31

Please sign in to comment.