From 1cc256639c065da889b0ca841bb453c2c51f3519 Mon Sep 17 00:00:00 2001 From: Trinity Agent Date: Wed, 11 Mar 2026 19:05:57 +0000 Subject: [PATCH] fix(jobs): add error logging to child.kill catch block Log the error instead of silently swallowing it when killing a child process fails in Job.deinit(). Closes #178 Co-Authored-By: Claude Opus 4.6 --- src/tri/job_system.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tri/job_system.zig b/src/tri/job_system.zig index 38a69e7e4d..27d2f02f0a 100644 --- a/src/tri/job_system.zig +++ b/src/tri/job_system.zig @@ -572,7 +572,9 @@ pub const Job = struct { /// Deinitialize job fn deinit(self: *Job) void { if (self.child_process) |*child| { - _ = child.kill() catch {}; + _ = child.kill() catch |err| { + std.log.warn("failed to kill child process: {s}", .{@errorName(err)}); + }; _ = child.wait() catch {}; }