Function rustix::process::waitpgid

source ·
pub fn waitpgid(pgid: Pid, waitopts: WaitOptions) -> Result<Option<WaitStatus>>
Expand description

waitpid(-pgid, waitopts)—Wait for a process in a specific process group to change state.

The call will wait for any child process with the given pgid.

On Success, returns the status of the selected process.

If NOHANG was specified in the options, and no selected child process changed state, returns None.

References