Lines Matching refs:wait
6 /// Options for modifying the behavior of wait/waitpid
9 const NOHANG = backend::process::wait::WNOHANG as _;
11 const UNTRACED = backend::process::wait::WUNTRACED as _;
13 const CONTINUED = backend::process::wait::WCONTINUED as _;
37 backend::process::wait::WIFSTOPPED(self.0 as _)
43 backend::process::wait::WIFCONTINUED(self.0 as _)
51 Some(backend::process::wait::WSTOPSIG(self.0 as _) as _)
61 if backend::process::wait::WIFEXITED(self.0 as _) {
62 Some(backend::process::wait::WEXITSTATUS(self.0 as _) as _)
72 if backend::process::wait::WIFSIGNALED(self.0 as _) {
73 Some(backend::process::wait::WTERMSIG(self.0 as _) as _)
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
91 /// Otherwise, the call will wait for the child process with the given pid.
102 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html
110 /// `wait(waitopts)`—Wait for any of the children of calling process to
123 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html
127 pub fn wait(waitopts: WaitOptions) -> io::Result<Option<(Pid, WaitStatus)>> {
128 backend::process::syscalls::wait(waitopts)