-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ananicy-cpp: add patch to fix detect cgroups
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/platform/linux/cgroups.cpp b/src/platform/linux/cgroups.cpp | ||
index 766fd2f5247ce64eb7dfd45e5551f41773eaa18b..d27dbf724bdf5097dfda0c8d4eaaadb3e81f70b3 100644 | ||
--- a/src/platform/linux/cgroups.cpp | ||
+++ b/src/platform/linux/cgroups.cpp | ||
@@ -223,7 +223,7 @@ control_groups::cgroup_info control_groups::get_cgroup_version(bool reset) { | ||
} | ||
|
||
if (!info.has_value()) { | ||
- std::ifstream mtab("/etc/mtab"); | ||
+ std::ifstream mtab("/proc/self/mounts"); | ||
while (mtab) { | ||
std::string word, line; | ||
fs::path cgroup_path; |