diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-04-15 11:51:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 11:51:51 +0100 |
| commit | b9d7b8d616bc784ef1e6b8e10805938de1546108 (patch) | |
| tree | 6b3a5602e598fcec2594e8607e214ca26e868015 /core/sys/linux | |
| parent | 2e29687ceeb004bfa820dd8c475786d2fed78a6d (diff) | |
| parent | a0e25be1967315d1ab2cf6b937549f3ff74c71f6 (diff) | |
Merge pull request #3429 from flysand7/sys-linux-wait4-fix
[sys/linux]: Fix signature on wait4 syscall
Diffstat (limited to 'core/sys/linux')
| -rw-r--r-- | core/sys/linux/sys.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sys/linux/sys.odin b/core/sys/linux/sys.odin index 869ce88e3..54a34fbea 100644 --- a/core/sys/linux/sys.odin +++ b/core/sys/linux/sys.odin @@ -787,8 +787,8 @@ exit :: proc "contextless" (code: i32) -> ! { Wait for the process to change state. Available since Linux 1.0. */ -wait4 :: proc "contextless" (pid: Pid, status: ^u32, options: Wait_Options) -> (Pid, Errno) { - ret := syscall(SYS_wait4, pid, status, transmute(u32) options) +wait4 :: proc "contextless" (pid: Pid, status: ^u32, options: Wait_Options, rusage: ^RUsage) -> (Pid, Errno) { + ret := syscall(SYS_wait4, pid, status, transmute(u32) options, rusage) return errno_unwrap(ret, Pid) } |