From: Francis Dupont Date: Thu, 1 Oct 2015 19:23:17 +0000 (+0200) Subject: [4074] Replaced exit() by _exit() in faulty children X-Git-Tag: trac3874_base~29^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8c4d54a9ec5ea3bf532dd82e5369f1f58e9fa7c;p=thirdparty%2Fkea.git [4074] Replaced exit() by _exit() in faulty children --- diff --git a/src/lib/util/process_spawn.cc b/src/lib/util/process_spawn.cc index 0870e934a4..420bf3bb00 100644 --- a/src/lib/util/process_spawn.cc +++ b/src/lib/util/process_spawn.cc @@ -217,10 +217,10 @@ ProcessSpawnImpl::spawn() { if (execvp(executable_.c_str(), args_) != 0) { // We may end up here if the execvp failed, e.g. as a result // of issue with permissions or invalid executable name. - exit(EXIT_FAILURE); + _exit(EXIT_FAILURE); } // Process finished, exit the child process. - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } // We're in the parent process.