Merge "libprocessgroup: Don't sleep after last cgroup removal attempt" into main
This commit is contained in:
commit
af5de39039
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--) {
|
||||
ret = rmdir(uid_pid_path.c_str());
|
||||
if (!ret || errno != EBUSY) break;
|
||||
if (!ret || errno != EBUSY || !retries) break;
|
||||
std::this_thread::sleep_for(5ms);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue