mirror of
https://github.com/NixOS/nix
synced 2025-07-05 12:21:48 +02:00
Simplify commonChildInit()
This commit is contained in:
parent
a387f46967
commit
19326ac297
4 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ HookInstance::HookInstance()
|
|||
/* Fork the hook. */
|
||||
pid = startProcess([&]() {
|
||||
|
||||
commonChildInit(fromHook);
|
||||
commonChildInit(fromHook.writeSide.get());
|
||||
|
||||
if (chdir("/") == -1) throw SysError("changing into /");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue