summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
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);
}