diff options
author | Himbeer <himbeer@disroot.org> | 2024-07-04 12:30:27 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-07-04 12:30:27 +0200 |
commit | 035cee7824b599303d526e26f43ae210a15e2126 (patch) | |
tree | 947f0c2096dc6d436595a306de4b772808094615 | |
parent | d364e5d8eff96661118f47f15bb64a9a42586259 (diff) |
process: Make call termHook optional and mark the call method noreturn
-rw-r--r-- | src/lib/process.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/process.zig b/src/lib/process.zig index 5c9466c..0f7f368 100644 --- a/src/lib/process.zig +++ b/src/lib/process.zig @@ -132,7 +132,7 @@ pub const Info = struct { return &proc_node.data; } - pub fn call(self: *Info, function: usize, args: anytype, termHook: TermHook) void { + pub fn call(self: *Info, function: usize, args: anytype, termHook: ?TermHook) noreturn { const Container = struct { fn terminate() linksection(".rethooks") callconv(.Naked) noreturn { // Syscall #100011 is "terminate". |