waitpid(2)
DESCRIPTION
Waits for a child process and optionally reaps it.
SYNOPSIS
long waitpid(int pid, int *status, uint32_t options);
RETURN VALUE
- Returns a non-negative result on success. Negative values are ABI errno codes.
ERRORS
-EFAULT- .
-ECHILD- .
-EINVAL- .
-ESRCH- .
ABI
Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.