| 46 | return init; |
| 47 | } |
| 48 | bool startSpawnedProcess(int argc, char* argv[], int& exit_status) override |
| 49 | { |
| 50 | exit_status = EXIT_FAILURE; |
| 51 | int32_t fd = -1; |
| 52 | if (!m_process->checkSpawned(argc, argv, fd)) { |
| 53 | return false; |
| 54 | } |
| 55 | m_protocol->serve(fd, m_exe_name, m_init); |
| 56 | exit_status = EXIT_SUCCESS; |
| 57 | return true; |
| 58 | } |
| 59 | void addCleanup(std::type_index type, void* iface, std::function<void()> cleanup) override |
| 60 | { |
| 61 | m_protocol->addCleanup(type, iface, std::move(cleanup)); |
no test coverage detected