![]() |
boost::process::posix_status — Status returned by a finalized child process on a POSIX system.
class posix_status : public boost::process::status { public: // construct/copy/destruct posix_status(const status &); // public member functions bool signaled(void) const; int term_signal(void) const; bool dumped_core(void) const; bool stopped(void) const; int stop_signal(void) 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.
posix_status
construct/copy/destructposix_status(const status & s);
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.
posix_status
public member functionsbool signaled(void ) const;
Returns whether the process exited due to an external signal. The result is always false in Win32 systems.
int term_signal(void ) const;
If the process was signaled, returns the terminating signal code. Cannnot be called under Win32 because the preconditions will not ever be met.
Requires: | signaled() is true. |
bool dumped_core(void ) const;
If the process was signaled, returns whether the process produced a core dump. Cannnot be called under Win32 because the preconditions will not ever be met.
Requires: | signaled() is true. |
bool stopped(void ) const;
Returns whether the process was stopped by an external signal. The result is always false in Win32 systems.
int stop_signal(void ) const;
If the process was stopped, returns the stop signal code. Cannnot be called under Win32 because the preconditions will not ever be met.
Requires: | signaled() is true. |
Copyright © 2006 Julio M. Merino Vidal |