| 230 | } |
| 231 | |
| 232 | bool IsRunning() { |
| 233 | #ifdef BOOST_PROCESS_AVAILABLE |
| 234 | # ifdef BOOST_PROCESS_USE_V2 |
| 235 | boost::system::error_code error_code; |
| 236 | return process_ && process_->running(error_code); |
| 237 | # else |
| 238 | return process_ && process_->running(); |
| 239 | # endif |
| 240 | #else |
| 241 | return false; |
| 242 | #endif |
| 243 | } |
| 244 | |
| 245 | uint64_t pid() { |
| 246 | #ifdef BOOST_PROCESS_AVAILABLE |