commit | af5de39039e0cb61b7e66e2f031b2387bb6376f2 | [log] [tgz] |
---|---|---|
author | T.J. Mercier <tjmercier@google.com> | Sat Oct 07 00:34:39 2023 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Oct 07 00:34:39 2023 +0000 |
tree | ec81f431e9804a17775c46ab18b8a77a48c0cf55 | |
parent | d32b562ee9320e740660f6465525d8122e1cbd71 [diff] | |
parent | b02f94490dc84877c210eb1b46a9b57d96fc45b2 [diff] |
Merge "libprocessgroup: Don't sleep after last cgroup removal attempt" into main
diff --git a/libprocessgroup/processgroup.cpp b/libprocessgroup/processgroup.cpp index 4506439..cc2565f 100644 --- a/libprocessgroup/processgroup.cpp +++ b/libprocessgroup/processgroup.cpp
@@ -219,7 +219,7 @@ 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); }