own_cgroup_path#
Run commands and agent-written programs inside an operating-system boundary. See the guide.
- zett_agent.sandbox.resources.own_cgroup_path(mount, cgroup_path=None)[源代码]#
Return the cgroup this process belongs to, below
mount./proc/self/cgroupholds onehierarchy:controllers:pathline per hierarchy; the unified one has empty controllers (0::/user.slice/...).- 参数:
mount (Path)
cgroup_path (Path | None)
- 返回类型:
Path | None