diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
| commit | 4fa6821e0645ff61a9380cd090abff472205c630 (patch) | |
| tree | bd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.posix/posix.spawn.ccm | |
| parent | e5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff) | |
| download | nihil-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.ccm | 7 |
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()); |
