Merge "libprocessgroup: Don't sleep after last cgroup removal attempt" into main am: af5de39039
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2777582 Change-Id: I40e30875dd7b802d4e17fb28ab70f1b247fdd896 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
5a374dcaa4
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid, unsigned i
|
||||||
|
|
||||||
while (retries--) {
|
while (retries--) {
|
||||||
ret = rmdir(uid_pid_path.c_str());
|
ret = rmdir(uid_pid_path.c_str());
|
||||||
if (!ret || errno != EBUSY) break;
|
if (!ret || errno != EBUSY || !retries) break;
|
||||||
std::this_thread::sleep_for(5ms);
|
std::this_thread::sleep_for(5ms);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue