Browse Source

[4074] Replaced exit() by _exit() in faulty children

Francis Dupont 9 years ago
parent
commit
b8c4d54a9e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/util/process_spawn.cc

+ 2 - 2
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.