summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-11 18:39:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-11 18:39:34 +0300
commit350b3a4029d2850aa3057f25566abf8a589f487f (patch)
tree87f19e178dd827b60ef84db919d564041029390d /src/utils/process.cpp
parent2274758726d1138a2b65535244e84225c3de5304 (diff)
downloadmanaverse-350b3a4029d2850aa3057f25566abf8a589f487f.tar.gz
manaverse-350b3a4029d2850aa3057f25566abf8a589f487f.tar.bz2
manaverse-350b3a4029d2850aa3057f25566abf8a589f487f.tar.xz
manaverse-350b3a4029d2850aa3057f25566abf8a589f487f.zip
Enable best mode autodetection for linux.
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r--src/utils/process.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index 3a742b313..620cb3b93 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -171,6 +171,7 @@ int execFileWait(std::string pathName, std::string name,
{ // sleep pid
sleep (waitTime);
// printf ("time out\n");
+ execl("/bin/true", "/bin/true", static_cast<char *>(nullptr));
exit(-1);
}
@@ -189,6 +190,7 @@ int execFileWait(std::string pathName, std::string name,
ret = -1;
}
wait(nullptr);
+ execl("/bin/true", "/bin/true", static_cast<char *>(nullptr));
exit(ret);
}