]> granicus.if.org Git - icinga2/commitdiff
Flush stdout before _exit()
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 5 Aug 2014 11:52:24 +0000 (13:52 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 5 Aug 2014 11:52:24 +0000 (13:52 +0200)
fixes #6852
refs #6820

lib/base/application.cpp

index f69d0194a7b36c24134da23db462f9651d564205..d17415164e36db94013397652b39f31bf6fcb07c 100644 (file)
@@ -114,6 +114,7 @@ Application::~Application(void)
 
 void Application::Exit(int rc)
 {
+       std::cout.flush();
        _exit(rc); // Yay, our static destructors are pretty much beyond repair at this point.
 }