Skip to content

Commit d576936

Browse files
authored
Merge pull request #179 from gHashTag/feat/issue-178
fix(jobs): add error logging to child.kill catch block
2 parents afaf17c + 1cc2566 commit d576936

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)