Function sys_wait

Source
pub fn sys_wait() -> (i32, i32)
Expand description

Wait for any of the caller’s child-process’s scheduling-statuses to change (not including going from idle to runnable, more signal related statuses; see manpage wait(2))

Returns a 2-tuple with the PID first, then the status of the child process.