pub fn wait_pid(pid: i32, options: i32) -> Result<(i32, i32), i32>
Host waitpid. Returns (pid, status) or Err(errno). pid == 0 with WNOHANG means no child ready.
waitpid
(pid, status)
Err(errno)
pid == 0
WNOHANG