Merge "libprocessgroup: Don't sleep after last cgroup removal attempt" into main

This commit is contained in:
T.J. Mercier 2023-10-07 00:34:39 +00:00 committed by Gerrit Code Review
commit af5de39039
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static int RemoveProcessGroup(const char* cgroup, uid_t uid, int pid, unsigned i
while (retries--) {
ret = rmdir(uid_pid_path.c_str());
if (!ret || errno != EBUSY) break;
if (!ret || errno != EBUSY || !retries) break;
std::this_thread::sleep_for(5ms);
}