mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user