ListProcesses through PID when cgroup is not found in Linux (#25198)

* ListProcesses through PID when cgroup is not found

* add changelog entry

* update the ListByPid for windows
This commit is contained in:
Simon Zou
2025-03-06 16:41:51 +00:00
committed by GitHub
parent 149141e831
commit 73ceacd236
5 changed files with 15 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ func withNetworkIsolation(f func() error, _ *drivers.NetworkIsolationSpec) error
func setCmdUser(*exec.Cmd, string) error { return nil }
func (e *UniversalExecutor) ListProcesses() set.Collection[int] {
return procstats.List(e.childCmd.Process.Pid)
return procstats.ListByPid(e.childCmd.Process.Pid)
}
func (e *UniversalExecutor) setSubCmdCgroup(*exec.Cmd, string) (func(), error) {