diff --git a/lib/cli/daemoncommand.cpp b/lib/cli/daemoncommand.cpp index 2eaefaeda..d1341bb12 100644 --- a/lib/cli/daemoncommand.cpp +++ b/lib/cli/daemoncommand.cpp @@ -497,6 +497,7 @@ static pid_t StartUnixWorker(const std::vector& configs, bool close _exit(RunWorker(configs, closeConsoleLog, stderrFile)); } catch (const std::exception& ex) { Log(LogCritical, "cli") << "Exception in main process: " << DiagnosticInformation(ex); + throw; _exit(EXIT_FAILURE); } catch (...) { throw;