aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/lock.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-11-18 10:39:28 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-11-18 10:39:28 +0100
commit128910ba23f586ba1765a137ecff23cfd22cff89 (patch)
tree2adc969d5ae2fa2f470000e9bbc7b8f8b0c3edd4 /src/libstore/lock.hh
parentf1ab082ac4f589a36a9eb0cd98d1cc235eedc419 (diff)
Separate cgroup support from auto-uid-allocation
The new experimental feature 'cgroups' enables the use of cgroups for all builds. This allows better containment and enables setting resource limits and getting some build stats.
Diffstat (limited to 'src/libstore/lock.hh')
-rw-r--r--src/libstore/lock.hh7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libstore/lock.hh b/src/libstore/lock.hh
index b5536408c..e7ceefab8 100644
--- a/src/libstore/lock.hh
+++ b/src/libstore/lock.hh
@@ -27,13 +27,6 @@ struct UserLock
virtual gid_t getGID() = 0;
virtual std::vector<gid_t> getSupplementaryGIDs() = 0;
-
- /* Kill any processes currently executing as this user. */
- virtual void kill() = 0;
-
- #if __linux__
- virtual std::optional<Path> getCgroup() { return {}; };
- #endif
};
/* Acquire a user lock for a UID range of size `nrIds`. Note that this