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

Commit 5a374dca authored by T.J. Mercier's avatar T.J. Mercier Committed by Automerger Merge Worker
Browse files

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

parents b9a6391c af5de390
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);
    }
    }