From 4fa6821e0645ff61a9380cd090abff472205c630 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 29 Jun 2025 17:16:22 +0100 Subject: add clang-tidy support --- nihil.posix/posix.spawn.ccm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'nihil.posix/posix.spawn.ccm') diff --git a/nihil.posix/posix.spawn.ccm b/nihil.posix/posix.spawn.ccm index 5812716..4cce334 100644 --- a/nihil.posix/posix.spawn.ccm +++ b/nihil.posix/posix.spawn.ccm @@ -229,12 +229,9 @@ spawn(executor auto &&executor, auto &&...actions) auto proc = process(pid); if (pid == 0) { - // We are in the child. Release the process so we don't - // try to wait for ourselves, then run child handlers and - // exec the process. - - std::ignore = std::move(proc).release(); + // We are in the child. (actions.run_in_child(proc), ...); + std::ignore = std::move(proc).release(); auto err = executor.exec(); std::print("{}\n", err.error()); -- cgit v1.2.3