From 574a8e191a8bfe489c5d079a4a79bad76b4deb98 Mon Sep 17 00:00:00 2001 From: niansa Date: Mon, 19 Jul 2021 12:23:33 +0200 Subject: [PATCH] Updated for latest QIPC --- child_launcher.cpp | 2 +- hss.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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");