From ce6cb14995e869cfea395570ccb300b0369c72dc Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Fri, 5 Apr 2024 21:15:22 +0200 Subject: libutil: return Pid from startProcess, not pid_t Change-Id: Icc8a15090c77f54ea7d9220aadedcd4a19922814 --- src/libstore/build/hook-instance.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/build/hook-instance.cc') diff --git a/src/libstore/build/hook-instance.cc b/src/libstore/build/hook-instance.cc index b8d8fe7a4..9a93646f4 100644 --- a/src/libstore/build/hook-instance.cc +++ b/src/libstore/build/hook-instance.cc @@ -35,7 +35,7 @@ HookInstance::HookInstance() builderOut.create(); /* Fork the hook. */ - pid = Pid{startProcess([&]() { + pid = startProcess([&]() { if (dup2(fromHook.writeSide.get(), STDERR_FILENO) == -1) throw SysError("cannot pipe standard error into log file"); @@ -60,7 +60,7 @@ HookInstance::HookInstance() execv(buildHook.c_str(), stringsToCharPtrs(args).data()); throw SysError("executing '%s'", buildHook); - })}; + }); pid.setSeparatePG(true); fromHook.writeSide.reset(); -- cgit v1.2.3