Function lrs::syscall::waitid

Waits for a child process.

Syntax

fn waitid(which: i32, upid: i32, infop: &mut siginfo_t, options: i32, ru: Option<&mut rusage>) -> i32

Arguments

NameDescription
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.

Return value

Returns success or an error value.

See also