Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 094c5bb0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "libprocessgroup: Do not remove uid cgroups directory" am: 4717129e

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

Change-Id: I229b716d8e333c8427ce6e6eaa701614fd628242
parents 16232a17 4717129e
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -146,12 +146,6 @@ static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid, unsigned i
        std::this_thread::sleep_for(5ms);
    }

    // With the exception of boot or shutdown, system uid_ folders are always populated. Spinning
    // here would needlessly delay most pid removals. Additionally, once empty a uid_ cgroup won't
    // have processes hanging on it (we've already spun for all its pid_), so there's no need to
    // spin anyway.
    rmdir(uid_path.c_str());

    return ret;
}