aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.posix/posix.spawn.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-29 17:16:22 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-29 17:16:22 +0100
commit4fa6821e0645ff61a9380cd090abff472205c630 (patch)
treebd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.posix/posix.spawn.ccm
parente5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff)
downloadnihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.gz
nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.bz2
add clang-tidy support
Diffstat (limited to 'nihil.posix/posix.spawn.ccm')
-rw-r--r--nihil.posix/posix.spawn.ccm7
1 files changed, 2 insertions, 5 deletions
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());