| @@ -103,6 +103,7 @@ static void run(Conf conf) { | |||
| argv.push_back(std::move(arg)); | |||
| } | |||
| try { | |||
| sys::ignoreCtrlC(); | |||
| sys::execute(argv, true); | |||
| } catch (std::exception &ex) { | |||
| logger::log(ex.what()); | |||
| @@ -299,4 +299,8 @@ std::string dirname(const std::string &path) { | |||
| return std::string(dir); | |||
| } | |||
| void ignoreCtrlC() { | |||
| signal(SIGINT, SIG_IGN); | |||
| } | |||
| } | |||
| @@ -29,5 +29,6 @@ void chdir(const std::string &path); | |||
| std::string cwd(); | |||
| void symlink(const std::string &from, const std::string &to); | |||
| std::string dirname(const std::string &path); | |||
| void ignoreCtrlC(); | |||
| } | |||