]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1657] addressed comments
authorRazvan Becheriu <razvan@isc.org>
Mon, 22 Feb 2021 15:10:45 +0000 (17:10 +0200)
committerRazvan Becheriu <razvan@isc.org>
Mon, 22 Feb 2021 16:02:57 +0000 (16:02 +0000)
src/lib/asiolink/process_spawn.cc

index a83c16bba6af7a39050b6279864a6d9d9828e7cb..e47a8f069582a35568da06fbdf12aec39544d901 100644 (file)
@@ -249,11 +249,10 @@ ProcessSpawnImpl::spawn(bool dismiss) {
 
     } else if (pid == 0) {
         // Run the executable.
-        if (execve(executable_.c_str(), args_.get(), vars_.get()) != 0) {
-            // We may end up here if the execve failed, e.g. as a result
-            // of issue with permissions or invalid executable name.
-            _exit(EXIT_FAILURE);
-        }
+        execve(executable_.c_str(), args_.get(), vars_.get()) != 0);
+        // We may end up here if the execve failed, e.g. as a result
+        // of issue with permissions or invalid executable name.
+        _exit(EXIT_FAILURE);
     }
 
     // We're in the parent process.