• Home
  • Raw
  • Download

Lines Matching full:wait

9 use crate::backend::process::wait::SiginfoExt;
12 /// Options for modifying the behavior of [`wait`]/[`waitpid`].
17 const NOHANG = bitcast!(backend::process::wait::WNOHANG);
21 const UNTRACED = bitcast!(backend::process::wait::WUNTRACED);
24 const CONTINUED = bitcast!(backend::process::wait::WCONTINUED);
38 const NOHANG = bitcast!(backend::process::wait::WNOHANG);
41 const CONTINUED = bitcast!(backend::process::wait::WCONTINUED);
42 /// Wait for processed that have exited.
43 const EXITED = bitcast!(backend::process::wait::WEXITED);
45 const NOWAIT = bitcast!(backend::process::wait::WNOWAIT);
46 /// Wait for processes that have been stopped.
47 const STOPPED = bitcast!(backend::process::wait::WSTOPPED);
54 /// The status of a child process after calling [`wait`]/[`waitpid`].
75 backend::process::wait::WIFSTOPPED(self.0 as _) in stopped()
81 backend::process::wait::WIFEXITED(self.0 as _) in exited()
87 backend::process::wait::WIFSIGNALED(self.0 as _) in signaled()
93 backend::process::wait::WIFCONTINUED(self.0 as _) in continued()
101 Some(backend::process::wait::WSTOPSIG(self.0 as _) as _) in stopping_signal()
112 Some(backend::process::wait::WEXITSTATUS(self.0 as _) as _) in exit_status()
123 Some(backend::process::wait::WTERMSIG(self.0 as _) as _) in terminating_signal()
251 /// The identifier to wait on in a call to [`waitid`].
256 /// Wait on all processes.
260 /// Wait for a specific process ID.
264 /// Wait for a specific process group ID, or the calling process' group ID.
268 /// Wait for a specific process file descriptor.
279 /// `waitpid(pid, waitopts)`—Wait for a specific process to change state.
281 /// If the pid is `None`, the call will wait for any child process whose
284 /// Otherwise, the call will wait for the child process with the given pid.
298 /// `-1` case of `waitpid`); to do that, currently the [`wait`] function must
305 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html
313 /// `waitpid(-pgid, waitopts)`—Wait for a process in a specific process group
316 /// The call will wait for any child process with the given pgid.
327 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html
335 /// `wait(waitopts)`—Wait for any of the children of calling process to
348 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html
352 pub fn wait(waitopts: WaitOptions) -> io::Result<Option<(Pid, WaitStatus)>> { in wait() function
353 backend::process::syscalls::wait(waitopts) in wait()
356 /// `waitid(_, _, _, opts)`—Wait for the specified child process to change