| 26 | { |
| 27 | public: |
| 28 | int spawn(const std::string& new_exe_name, const fs::path& argv0_path, int& pid) override |
| 29 | { |
| 30 | return mp::SpawnProcess(pid, [&](int fd) { |
| 31 | fs::path path = argv0_path; |
| 32 | path.remove_filename(); |
| 33 | path /= fs::PathFromString(new_exe_name); |
| 34 | return std::vector<std::string>{fs::PathToString(path), "-ipcfd", strprintf("%i", fd)}; |
| 35 | }); |
| 36 | } |
| 37 | int waitSpawned(int pid) override { return mp::WaitProcess(pid); } |
| 38 | bool checkSpawned(int argc, char* argv[], int& fd) override |
| 39 | { |
no test coverage detected