Fix exit_code in user
This commit is contained in:
parent
d99b71a9d5
commit
4021105561
1 changed files with 2 additions and 2 deletions
|
@ -69,6 +69,6 @@ pub fn sys_exec(path: &str) -> isize {
|
||||||
syscall(SYSCALL_EXEC, [path.as_ptr() as usize, 0, 0])
|
syscall(SYSCALL_EXEC, [path.as_ptr() as usize, 0, 0])
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn sys_waitpid(pid: isize, xstatus: *mut i32) -> isize {
|
pub fn sys_waitpid(pid: isize, exit_code: *mut i32) -> isize {
|
||||||
syscall(SYSCALL_WAITPID, [pid as usize, xstatus as usize, 0])
|
syscall(SYSCALL_WAITPID, [pid as usize, exit_code as usize, 0])
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue