Function os::syscall::process::sys_waitpid
source · pub fn sys_waitpid(pid: isize, exit_code_ptr: *mut i32) -> isize
Expand description
If there is not a child process whose pid is same as given, return -1. Else if there is a child process but it is still running, return -2.