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

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

Change-Id: Ic61990befd49ff0799b3bea3d50cdd89b974cda5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-04-26 14:59:20 +00:00 committed by Automerger Merge Worker
commit 49a08b7209

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());