Here is the code:
Why should we add the lineCode:int wrapSystem(const std::string& cmd){ int ret = system(cmd.c_str()); if (WIFSIGNALED(ret) && (WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT)) return -1; else return ret; }
if (WIFSIGNALED(ret) &&
(WTERMSIG(ret) == SIGINT || WTERMSIG(ret) == SIGQUIT))
What does that do?