Skip to main content

SYS_PROC_WAITPID

Constant SYS_PROC_WAITPID 

Source
pub const SYS_PROC_WAITPID: usize = 310;
Expand description

Wait for a specific child process to change state.

  • pid: child PID to wait for (-1 = any child)
  • status_ptr: pointer to receive exit status
  • options: WNOHANG, WUNTRACED, WCONTINUED flags

Returns the child PID, or -ECHILD if no children exist.