Lines Matching refs:process

29 #include "utils/process/status.hpp"
39 namespace process = utils::process;
51 /// \param dead_pid_ The PID of the process this status belonged to.
53 process::status::status(const int dead_pid_, int stat_loc) :
69 /// the process dumped core or not.
70 process::status::status(const optional< int >& exited_,
81 /// \param exitstatus_ The exit code of the process.
84 process::status
85 process::status::fake_exited(const int exitstatus_)
93 /// \param termsig_ The termination signal of the process.
94 /// \param coredump_ Whether the process dumped core or not.
97 process::status
98 process::status::fake_signaled(const int termsig_, const bool coredump_)
105 /// Returns the PID of the process this status was taken from.
107 /// Please note that the process is already dead and gone from the system. This
109 /// process in any way.
111 /// \return The PID of the original process.
113 process::status::dead_pid(void) const
119 /// Returns whether the process exited cleanly or not.
121 /// \return True if the process exited cleanly, false otherwise.
123 process::status::exited(void) const
129 /// Returns the exit code of the process.
131 /// \pre The process must have exited cleanly (i.e. exited() must be true).
135 process::status::exitstatus(void) const
142 /// Returns whether the process terminated due to a signal or not.
144 /// \return True if the process terminated due to a signal, false otherwise.
146 process::status::signaled(void) const
152 /// Returns the signal that terminated the process.
154 /// \pre The process must have terminated by a signal (i.e. signaled() must be
159 process::status::termsig(void) const
166 /// Returns whether the process core dumped or not.
171 /// \pre The process must have terminated by a signal (i.e. signaled() must be
174 /// \return True if the process dumped core, false otherwise.
176 process::status::coredump(void) const
190 process::operator<<(std::ostream& output, const status& status)