libstore: move cgroup to linux subclass

Change-Id: I2bf04383d422a46c38183cc944dc7e6489b0dbd2
This commit is contained in:
Artemis Tosini 2024-05-03 02:25:18 +00:00
parent e6275f8d2f
commit 7cc509f171
2 changed files with 5 additions and 5 deletions

View file

@ -20,11 +20,6 @@ struct LocalDerivationGoal : public DerivationGoal
*/
Pid pid;
/**
* The cgroup of the builder, if any.
*/
std::optional<Path> cgroup;
/**
* The temporary directory.
*/

View file

@ -41,6 +41,11 @@ class LinuxLocalDerivationGoal : public LocalDerivationGoal
public:
using LocalDerivationGoal::LocalDerivationGoal;
/**
* The cgroup of the builder, if any.
*/
std::optional<Path> cgroup;
private:
void materialisePath(const StorePath & path) override;
void preStartBuilder() override;