From 386dac2875f4a5ad4a534c403338db3b26239a68 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 1 Sep 2012 16:45:51 +0300 Subject: Fix forked processes termination. --- src/utils/process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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(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(nullptr)); - exit(ret); + _exit(ret); } // monitoring parent -- cgit v1.2.3-70-g09d2