Class status
boost::process::status — Status returned by a finalized child process.
Synopsis
Description
This class represents the status returned by a child process after it has terminated. It only provides that information available under all supported platforms.
posix_status
status
construct/copy/destruct
-
status(int flags);
Creates a new status object representing the exit status of a child process.
Parameters: |
flags |
In a POSIX system this parameter contains the flags returned by the waitpid() call. In a Win32 system it contains the exit code only. |
|
status
public member functions
-
bool exited(void ) const;
Returns whether the process exited gracefully or not.
-
int exit_status(void ) const;
If the process exited, returns the exit code it returned.
Requires: |
exited() is true. |