|
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>
Collaboration diagram for core::posix::wait::Result:Public Types | |
| enum | Status { Status::undefined, Status::no_state_change, Status::exited, Status::signaled, Status::stopped, Status::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. More... | |
The Result struct encapsulates the result of waiting for a process state change.
|
strong |
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.
Referenced by core::posix::ChildProcess::wait_for().
| struct { ... } core::posix::wait::Result::if_exited |
Contains the exit status of the process if status == Status::exited.
Referenced by core::posix::ChildProcess::wait_for().
| struct { ... } core::posix::wait::Result::if_signaled |
Contains the signal that caused the process to terminate if status == Status::signaled.
Referenced by core::posix::ChildProcess::wait_for().
| struct { ... } core::posix::wait::Result::if_stopped |
Contains the signal that caused the process to terminate if status == Status::stopped.
Referenced by core::posix::ChildProcess::wait_for().
| 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 |