summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/utils/process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index 620cb3b93..36e53c305 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -172,7 +172,7 @@ int execFileWait(std::string pathName, std::string name,
sleep (waitTime);
// printf ("time out\n");
execl("/bin/true", "/bin/true", static_cast<char *>(nullptr));
- exit(-1);
+ _exit(-1);
}
// monitoring process
@@ -191,7 +191,7 @@ int execFileWait(std::string pathName, std::string name,
}
wait(nullptr);
execl("/bin/true", "/bin/true", static_cast<char *>(nullptr));
- exit(ret);
+ _exit(ret);
}
// monitoring parent