CShellWindow: use my_system instead system, avoids possible errors

This commit is contained in:
2015-05-25 16:09:00 +02:00
parent 79f66537f0
commit 5f1708b6e1

View File

@@ -64,7 +64,7 @@ void CShellWindow::exec()
std::string cmd;
if (!(mode & VERBOSE)){
cmd = "PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin ; export PATH ; " + command + " 2>/dev/null >&2";
int r = system(cmd.c_str());
int r = my_system(cmd.c_str());
if (res) {
if (r == -1)
*res = r;