]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4074] Replaced exit() by _exit() in faulty children
authorFrancis Dupont <fdupont@isc.org>
Thu, 1 Oct 2015 19:23:17 +0000 (21:23 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 1 Oct 2015 19:23:17 +0000 (21:23 +0200)
src/lib/util/process_spawn.cc

index 0870e934a455b6d5b7a2e9288f8c9fb7b1ddf5f7..420bf3bb00e75f3777f1b4ad23a3f5f68dae988b 100644 (file)
@@ -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.