summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-01 16:45:51 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-01 16:45:51 +0300
commit386dac2875f4a5ad4a534c403338db3b26239a68 (patch)
treeb8e004f2f67b07d75dff9adef626c150a0552f08
parent2fa5068aa503ecf62bfa026334d5aa765acee915 (diff)
downloadmanaplus-1.2.9.2.tar.gz
manaplus-1.2.9.2.tar.bz2
manaplus-1.2.9.2.tar.xz
manaplus-1.2.9.2.zip
Fix forked processes termination.v1.2.9.2
-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