Lines Matching refs:pid
80 /// `waitpid(pid, waitopts)`—Wait for a specific process to change state.
82 /// If the pid is `None`, the call will wait for any child process whose
85 /// If the pid is equal to `RawPid::MAX`, the call will wait for any child
88 /// Otherwise if the `wrapping_neg` of pid is less than pid, the call will wait
89 /// for any child process with a group ID equal to the `wrapping_neg` of `pid`.
91 /// Otherwise, the call will wait for the child process with the given pid.
106 pub fn waitpid(pid: Option<Pid>, waitopts: WaitOptions) -> io::Result<Option<WaitStatus>> {
107 Ok(backend::process::syscalls::waitpid(pid, waitopts)?.map(|(_, status)| status))
113 /// On success, returns the pid of the child process whose state changed, and