mirror of
https://gitlab.com/niansa/libhss.git
synced 2025-03-06 20:49:21 +01:00
Updated for latest QIPC
This commit is contained in:
parent
9321245f89
commit
574a8e191a
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
4
hss.hpp
4
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");
|
||||
|
|
Loading…
Add table
Reference in a new issue