• Home
  • Raw
  • Download

Lines Matching full:process

1 use crate::process::Pid;
9 use crate::backend::process::wait::SiginfoExt;
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);
43 const EXITED = bitcast!(backend::process::wait::WEXITED);
45 const NOWAIT = bitcast!(backend::process::wait::WNOWAIT);
47 const STOPPED = bitcast!(backend::process::wait::WSTOPPED);
54 /// The status of a child process after calling [`wait`]/[`waitpid`].
72 /// Returns whether the process is currently stopped.
75 backend::process::wait::WIFSTOPPED(self.0 as _) in stopped()
78 /// Returns whether the process has exited normally.
81 backend::process::wait::WIFEXITED(self.0 as _) in exited()
84 /// Returns whether the process was terminated by a signal.
87 backend::process::wait::WIFSIGNALED(self.0 as _) in signaled()
90 /// Returns whether the process has continued from a job control stop.
93 backend::process::wait::WIFCONTINUED(self.0 as _) in continued()
96 /// Returns the number of the signal that stopped the process, if the
97 /// process was stopped by a signal.
101 Some(backend::process::wait::WSTOPSIG(self.0 as _) as _) in stopping_signal()
107 /// Returns the exit status number returned by the process, if it exited
112 Some(backend::process::wait::WEXITSTATUS(self.0 as _) as _) in exit_status()
118 /// Returns the number of the signal that terminated the process, if the
119 /// process was terminated by a signal.
123 Some(backend::process::wait::WTERMSIG(self.0 as _) as _) in terminating_signal()
130 /// The status of a process after calling [`waitid`].
138 /// Returns whether the process is currently stopped.
144 /// Returns whether the process is currently trapped.
150 /// Returns whether the process has exited normally.
156 /// Returns whether the process was terminated by a signal and did not
163 /// Returns whether the process was terminated by a signal and did create a
170 /// Returns whether the process has continued from a job control stop.
176 /// Returns the number of the signal that stopped the process, if the
177 /// process was stopped by a signal.
188 /// Returns the number of the signal that trapped the process, if the
189 /// process was trapped by a signal.
200 /// Returns the exit status number returned by the process, if it exited
212 /// Returns the number of the signal that terminated the process, if the
213 /// process was terminated by a signal.
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
282 /// process group id matches that of the calling process.
284 /// Otherwise, the call will wait for the child process with the given pid.
286 /// On Success, returns the status of the selected process.
288 /// If `NOHANG` was specified in the options, and the selected child process
293 /// This function does not currently support waiting for given process group
297 /// This function does not currently support waiting for any process (the
310 Ok(backend::process::syscalls::waitpid(pid, waitopts)?.map(|(_, status)| status)) in waitpid()
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.
318 /// On Success, returns the status of the selected process.
320 /// If `NOHANG` was specified in the options, and no selected child process
332 Ok(backend::process::syscalls::waitpgid(pgid, waitopts)?.map(|(_, status)| status)) in waitpgid()
335 /// `wait(waitopts)`—Wait for any of the children of calling process to
338 /// On success, returns the pid of the child process whose state changed, and
339 /// the status of said process.
341 /// If `NOHANG` was specified in the options, and the selected child process
353 backend::process::syscalls::wait(waitopts) in wait()
356 /// `waitid(_, _, _, opts)`—Wait for the specified child process to change
364 backend::process::syscalls::waitid(id.into(), options) in waitid()