aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/cgroup.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-12-02 12:57:41 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-12-02 12:59:13 +0100
commit1e6a5d1ff6e8ef5bf340502f74c4d5039cedc67a (patch)
tree59899facd4e1989db3f0370aa2e75d0748577d66 /src/libutil/cgroup.hh
parent1211e59a038379026496bbee4b203bbd66833b01 (diff)
Clean up cgroup handling in getMaxCPU()
Also, don't assume in LocalDerivationGoal that cgroups are mounted on /sys/fs/cgroup.
Diffstat (limited to 'src/libutil/cgroup.hh')
-rw-r--r--src/libutil/cgroup.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/cgroup.hh b/src/libutil/cgroup.hh
index 3ead4735f..d08c8ad29 100644
--- a/src/libutil/cgroup.hh
+++ b/src/libutil/cgroup.hh
@@ -9,6 +9,8 @@
namespace nix {
+std::optional<Path> getCgroupFS();
+
std::map<std::string, std::string> getCgroups(const Path & cgroupFile);
struct CgroupStats