#include <posix_status.hpp>
Public Member Functions | |
posix_status (const status &s) | |
bool | signaled () const |
int | term_signal () const |
bool | dumped_core () const |
bool | stopped () const |
int | stop_signal () const |
This class represents the status returned by a child process after it has terminated. It contains some methods not available in the status class that provide information only available in POSIX systems.
boost::process::posix_status::posix_status | ( | const status & | s | ) | [inline] |
Creates a posix_status object from an existing status object.
Creates a new status object representing the exit status of a child process. The construction is done based on an existing status object which already contains all the available information: this class only provides controlled access to it.
bool boost::process::posix_status::signaled | ( | ) | const [inline] |
Returns whether the process exited due to an external signal.
int boost::process::posix_status::term_signal | ( | ) | const [inline] |
If signaled, returns the terminating signal code.
If the process was signaled, returns the terminating signal code.
bool boost::process::posix_status::dumped_core | ( | ) | const [inline] |
If signaled, returns whether the process dumped core.
If the process was signaled, returns whether the process produced a core dump.
bool boost::process::posix_status::stopped | ( | ) | const [inline] |
Returns whether the process was stopped by an external signal.
int boost::process::posix_status::stop_signal | ( | ) | const [inline] |