diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-03-14 18:58:12 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2023-03-14 18:58:12 +0100 |
commit | 19326ac2979f0d989835105a5d816a943a6bc7f2 (patch) | |
tree | 99ee0d069e03391e7b50d34d6fece6e3cb71c81e /src/libstore/build | |
parent | a387f46967ae9eb97eaeb17ca26fb583283815ce (diff) |
Simplify commonChildInit()
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/hook-instance.cc | 2 | ||||
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build/hook-instance.cc b/src/libstore/build/hook-instance.cc index cb58a1f02..ea2ae210e 100644 --- a/src/libstore/build/hook-instance.cc +++ b/src/libstore/build/hook-instance.cc @@ -35,7 +35,7 @@ HookInstance::HookInstance() /* Fork the hook. */ pid = startProcess([&]() { - commonChildInit(fromHook); + commonChildInit(fromHook.writeSide.get()); if (chdir("/") == -1) throw SysError("changing into /"); diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index 6fb9b86e0..61c1cbccf 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -1649,7 +1649,7 @@ void LocalDerivationGoal::runChild() try { /* child */ - commonChildInit(builderOut); + commonChildInit(builderOut.writeSide.get()); try { setupSeccomp(); |