Incorporate review feedback

This commit is contained in:
Robert Schulze 2024-05-20 13:13:50 +00:00
parent a2f2003445
commit 6f56642567
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -17,9 +17,9 @@ bool cgroupsV2Enabled()
return false; return false;
return true; return true;
} }
catch (...) catch (const std::filesystem::filesystem_error &) /// all "underlying OS API errors", typically: permission denied
{ {
return false; /// e.g. permission denied exception return false; /// not logging the exception as most callers fall back to cgroups v1
} }
#else #else
return false; return false;