diff options
Diffstat (limited to 'src/lib/process.zig')
-rw-r--r-- | src/lib/process.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/process.zig b/src/lib/process.zig index aa3568c..7a39d10 100644 --- a/src/lib/process.zig +++ b/src/lib/process.zig @@ -71,7 +71,7 @@ pub const Info = struct { }; pub const TermHook = struct { - hookFn: *const fn (context: *anyopaque, proc: *const Info) void, + hookFn: *const fn (context: *anyopaque, proc: *const Info) anyerror!usize, context: *anyopaque, }; @@ -197,7 +197,7 @@ pub const Info = struct { cleanup_hook.cleanupFn(self, cleanup_hook.buffer, cleanup_hook.copy); } if (self.term_hook) |term_hook| { - term_hook.hookFn(term_hook.context, self); + _ = term_hook.hookFn(term_hook.context, self) catch 0; } } |