| 30 | } |
| 31 | |
| 32 | bool ProcessorClient::init() { |
| 33 | traceScope(); |
| 34 | if (!startSandbox()) { |
| 35 | setAndLogError("fatal error: failed to start sandbox process"); |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | if (!connectSandbox()) { |
| 40 | setAndLogError("fatal error: failed to connect to sandbox process"); |
| 41 | if (m_process.isRunning()) { |
| 42 | m_process.kill(); |
| 43 | } |
| 44 | return false; |
| 45 | } |
| 46 | |
| 47 | m_error.clear(); |
| 48 | |
| 49 | return true; |
| 50 | } |
| 51 | |
| 52 | void ProcessorClient::shutdown() { |
| 53 | logln("shutting down sandbox"); |