process-cpp 3.0.0
A simple convenience library for handling processes in C++11.
|
The Result struct encapsulates the result of waiting for a process state change. More...
#include <wait.h>
Public Types | |
enum class | Status { undefined , no_state_change , exited , signaled , stopped , continued } |
The status of the process/wait operation. More... | |
Public Attributes | ||
enum core::posix::wait::Result::Status | status = Status::undefined | |
union { | ||
struct { | ||
exit::Status status | ||
Exit status of the process. More... | ||
} if_exited | ||
struct { | ||
Signal signal | ||
Signal that caused the process to terminate. More... | ||
bool core_dumped | ||
true if the process termination resulted in a core dump. More... | ||
} if_signaled | ||
struct { | ||
Signal signal | ||
Signal that caused the process to terminate. More... | ||
} if_stopped | ||
} | detail | |
Union of result-specific details. | ||
The Result struct encapsulates the result of waiting for a process state change.
The status of the process/wait operation.
bool core::posix::wait::Result::core_dumped |
union { ... } core::posix::wait::Result::detail |
Union of result-specific details.
struct { ... } core::posix::wait::Result::if_exited |
Contains the exit status of the process if status == Status::exited.
struct { ... } core::posix::wait::Result::if_signaled |
Contains the signal that caused the process to terminate if status == Status::signaled.
struct { ... } core::posix::wait::Result::if_stopped |
Contains the signal that caused the process to terminate if status == Status::stopped.
Signal core::posix::wait::Result::signal |
enum core::posix::wait::Result::Status core::posix::wait::Result::status = Status::undefined |
Referenced by core::posix::ChildProcess::wait_for().
exit::Status core::posix::wait::Result::status |