Function template wait_for_exit
boost::process::wait_for_exit
Synopsis
template<typename Process>
int_type wait_for_exit(const Process & p, boost::system::error_code & ec);
Description
Waits for a process to exit.
On Window boost::process::wait_for_exit returns the exit code of the process. On POSIX the exit status is returned. You must use the macro WEXITSTATUS
(defined in sys/wait.h) to fetch the exit code from the exit status.
|
Note |
This is a blocking function. |