From: Gunnar Beutner Date: Fri, 20 Mar 2015 11:27:40 +0000 (+0100) Subject: Flush stderr in Application::Exit X-Git-Tag: v2.4.0~788 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76b0c6d89db2729d5292aa65d39612c1ed71323b;p=icinga2 Flush stderr in Application::Exit fixes #8734 --- diff --git a/lib/base/application.cpp b/lib/base/application.cpp index d04f9ac71..bbf2135de 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -108,6 +108,7 @@ Application::~Application(void) void Application::Exit(int rc) { std::cout.flush(); + std::cerr.flush(); BOOST_FOREACH(const Logger::Ptr& logger, Logger::GetLoggers()) { logger->Flush();