summaryrefslogtreecommitdiff
path: root/src/utils
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 /src/utils
parent2fa5068aa503ecf62bfa026334d5aa765acee915 (diff)
downloadmv-386dac2875f4a5ad4a534c403338db3b26239a68.tar.gz
mv-386dac2875f4a5ad4a534c403338db3b26239a68.tar.bz2
mv-386dac2875f4a5ad4a534c403338db3b26239a68.tar.xz
mv-386dac2875f4a5ad4a534c403338db3b26239a68.zip
Fix forked processes termination.v1.2.9.2
Diffstat (limited to 'src/utils')
-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