Commit 880b348c authored by 残页's avatar 残页 Committed by John Wu

Add an old cgroup path

Fix topjohnwu#5125
cgroup root path might be mem cgroup instead of acct, especially on low-ram devices.
https://android.googlesource.com/platform/system/core/+/bc131c3244a6aa4961092ba08285f9d0435a8882%5E%21/#F0
parent 31fe3a1c
...@@ -305,6 +305,7 @@ static void daemon_entry() { ...@@ -305,6 +305,7 @@ static void daemon_entry() {
// Escape from cgroup // Escape from cgroup
int pid = getpid(); int pid = getpid();
switch_cgroup("/acct", pid); switch_cgroup("/acct", pid);
switch_cgroup("/dev/memcg/apps", pid);
switch_cgroup("/dev/cg2_bpf", pid); switch_cgroup("/dev/cg2_bpf", pid);
switch_cgroup("/sys/fs/cgroup", pid); switch_cgroup("/sys/fs/cgroup", pid);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment