1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 23:42:43 +01:00

Simplify commonChildInit()

This commit is contained in:
Eelco Dolstra 2023-03-14 18:58:12 +01:00
parent a387f46967
commit 19326ac297
4 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ HookInstance::HookInstance()
/* Fork the hook. */
pid = startProcess([&]() {
commonChildInit(fromHook);
commonChildInit(fromHook.writeSide.get());
if (chdir("/") == -1) throw SysError("changing into /");

View file

@ -1649,7 +1649,7 @@ void LocalDerivationGoal::runChild()
try { /* child */
commonChildInit(builderOut);
commonChildInit(builderOut.writeSide.get());
try {
setupSeccomp();