boost process running() and exit_code() thread safety
问题 I am using boost::process::child and boost::process::async_pipe to start an application and read asynchronously (through the means of boost::asio ) everything that app outputs on screen whenever this happens. I want to check also if the application is alive by using child::running() method; if not running I'd like to read the exit code using child::exit_code . This is very useful ESPECIALLY as it is a way to be notified about an application crashing or exiting unexpectedly (I could not find a