summaryrefslogtreecommitdiff
path: root/src/utils/process.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 01:48:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 01:48:47 +0300
commit9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (patch)
tree8150d1efe5162c1f5c685ed6170280ff2048ce08 /src/utils/process.cpp
parent987a88ffb5bd00e7996e8267b2bd3c9ed48a40e2 (diff)
downloadmv-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.tar.gz
mv-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.tar.bz2
mv-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.tar.xz
mv-9f87b4c92e3a4d524250dbbb376cd0f59b7d995e.zip
Fix termination from forked processes if exec file failed.
Now forked processes silently terminated.
Diffstat (limited to 'src/utils/process.cpp')
-rw-r--r--src/utils/process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp
index a5629fbc9..8e238b4cc 100644
--- a/src/utils/process.cpp
+++ b/src/utils/process.cpp
@@ -158,7 +158,7 @@ int execFileWait(std::string pathName, std::string name,
execl(pathName.c_str(), name.c_str(), arg1.c_str(),
arg2.c_str(), static_cast<char *>(nullptr));
}
- exit(-1);
+ _exit(-1);
}
// monitoring process