Merge "libprocessgroup: Remove unused uid_path from RemoveProcessGroup" am: 482feeecf7 am: 20aaa9ca86 am: 49a08b7209

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2563950

Change-Id: I9001df32b02a8db737b03db257ff2c0a9b51cdac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-04-26 16:48:19 +00:00 committed by Automerger Merge Worker
commit 482053ee93

View file

@ -216,7 +216,6 @@ static std::string ConvertUidPidToPath(const char* cgroup, uid_t uid, int pid) {
static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid, unsigned int retries) {
int ret = 0;
auto uid_pid_path = ConvertUidPidToPath(cgroup, uid, pid);
auto uid_path = ConvertUidToPath(cgroup, uid);
while (retries--) {
ret = rmdir(uid_pid_path.c_str());