| 214 | } |
| 215 | |
| 216 | Status Execute() { |
| 217 | #ifdef BOOST_PROCESS_AVAILABLE |
| 218 | try { |
| 219 | # ifdef BOOST_PROCESS_USE_V2 |
| 220 | return ExecuteV2(); |
| 221 | # else |
| 222 | return ExecuteV1(); |
| 223 | # endif |
| 224 | } catch (const std::exception& e) { |
| 225 | return Status::IOError("Failed to launch '", executable_, "': ", e.what()); |
| 226 | } |
| 227 | #else |
| 228 | return Status::NotImplemented("Boost.Process isn't available on this system"); |
| 229 | #endif |
| 230 | } |
| 231 | |
| 232 | bool IsRunning() { |
| 233 | #ifdef BOOST_PROCESS_AVAILABLE |
nothing calls this directly
no test coverage detected