Add an old cgroup path

Fix topjohnwu#5125
cgroup root path might be mem cgroup instead of acct, especially on low-ram devices.
bc131c3244%5E%21/#F0
This commit is contained in:
残页 2021-12-28 07:41:22 +08:00 committed by John Wu
parent 31fe3a1cd8
commit 880b348ce6

View File

@ -305,6 +305,7 @@ static void daemon_entry() {
// Escape from cgroup
int pid = getpid();
switch_cgroup("/acct", pid);
switch_cgroup("/dev/memcg/apps", pid);
switch_cgroup("/dev/cg2_bpf", pid);
switch_cgroup("/sys/fs/cgroup", pid);