Waits for a child process.
fn waitid(which: i32, upid: i32, infop: &mut siginfo_t, options: i32, ru: Option<&mut rusage>) -> i32
| Name | Description |
|---|---|
| which | The type of process to wait for. |
| upid | The id to wait for. |
| infop | A place into which the process information will be placed. |
| options | What changes to wait for. |
| ru | An optional place where resource usage of the process will be placed. |
Returns success or an error value.