diff --git a/child_launcher.cpp b/child_launcher.cpp index 2bd5543..1bc0d6f 100644 --- a/child_launcher.cpp +++ b/child_launcher.cpp @@ -36,7 +36,7 @@ int main(int argc, char **argv) { if (argc != 4) { abort(); } - QIPC ipc(QIPC::Fds{{std::stoi(argv[1]), std::stoi(argv[2])}}); + QIPC ipc(std::stoi(argv[1]), std::stoi(argv[2])); // Launch close(STDIN_FILENO); close(STDOUT_FILENO); diff --git a/hss.hpp b/hss.hpp index f6cc253..e2f12ba 100644 --- a/hss.hpp +++ b/hss.hpp @@ -8,8 +8,8 @@ namespace HSS { inline void run(QIPC& ipc, const std::string& file) { if (fork() == 0) { execlp("HSSChildLauncher", "child", - std::to_string(ipc.get_fds().get_in()).c_str(), - std::to_string(ipc.get_fds().get_out()).c_str(), + std::to_string(ipc.get_in()).c_str(), + std::to_string(ipc.get_out()).c_str(), file.c_str(), nullptr); throw std::runtime_error("Failed to run HSSChildLauncher");