#include <process.hpp>
Public Member Functions | |
process (id_type id) | |
id_type | get_id () const |
void | terminate (bool force=false) const |
The process class implements the Process concept in an operating system agnostic way.
boost::process::process::process | ( | id_type | id | ) | [inline] |
id_type boost::process::process::get_id | ( | ) | const [inline] |
Returns the process' identifier.
void boost::process::process::terminate | ( | bool | force = false |
) | const [inline] |
Terminates the process execution.
Forces the termination of the process execution. Some platforms allow processes to ignore some external termination notifications or to capture them for a proper exit cleanup. You can set the force flag to true in them to force their termination regardless of any exit handler.
After this call, accessing this object can be dangerous because the process identifier may have been reused by a different process. It might still be valid, though, if the process has refused to die.
boost::system::system_error | If the system call used to terminate the process fails. |