From 9f87b4c92e3a4d524250dbbb376cd0f59b7d995e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Sep 2012 01:48:47 +0300 Subject: Fix termination from forked processes if exec file failed. Now forked processes silently terminated. --- src/utils/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/process.cpp') 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(nullptr)); } - exit(-1); + _exit(-1); } // monitoring process -- cgit v1.2.3-60-g2f50