From 61d9e8699687342c2e32c32c8d4eb71760d5d290 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 26 Jun 2021 17:33:24 +0200 Subject: Use fork/exec instead of popen. Add Path class --- include/Exec.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/Exec.hpp') diff --git a/include/Exec.hpp b/include/Exec.hpp index 93ce307..538f0dc 100644 --- a/include/Exec.hpp +++ b/include/Exec.hpp @@ -4,6 +4,7 @@ #include "Result.hpp" #include "../include/FileUtil.hpp" #include +#include namespace sibs { @@ -13,8 +14,7 @@ namespace sibs int exitCode; }; - Result exec(const _tinydir_char_t *cmd, bool print = false); - Result exec(const FileString &cmd, bool print = false); + Result exec(const std::vector &args, bool print_instead_of_pipe = false); } #endif //SIBS_EXEC_HPP -- cgit v1.2.3