From: Razvan Becheriu Date: Mon, 22 Feb 2021 15:10:45 +0000 (+0200) Subject: [#1657] addressed comments X-Git-Tag: Kea-1.9.5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ff154adeeaa076e06923f228ab14f8f2d3eec1a;p=thirdparty%2Fkea.git [#1657] addressed comments --- diff --git a/src/lib/asiolink/process_spawn.cc b/src/lib/asiolink/process_spawn.cc index a83c16bba6..e47a8f0695 100644 --- a/src/lib/asiolink/process_spawn.cc +++ b/src/lib/asiolink/process_spawn.cc @@ -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.