Skip to content

Commit 1cc2566

Browse files
Trinity Agentclaude
andcommitted
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 <noreply@anthropic.com>
1 parent c16ed8f commit 1cc2566

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/tri/job_system.zig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,9 @@ pub const Job = struct {
572572
/// Deinitialize job
573573
fn deinit(self: *Job) void {
574574
if (self.child_process) |*child| {
575-
_ = child.kill() catch {};
575+
_ = child.kill() catch |err| {
576+
std.log.warn("failed to kill child process: {s}", .{@errorName(err)});
577+
};
576578
_ = child.wait() catch {};
577579
}
578580

0 commit comments

Comments
 (0)