]> granicus.if.org Git - icinga2/commitdiff
Fix formatting for the GDB stacktrace
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 11 Mar 2015 15:31:30 +0000 (16:31 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 11 Mar 2015 15:31:52 +0000 (16:31 +0100)
fixes #8684

lib/base/application.cpp

index daa4a3fcdfd4f911e0a8ed3b21ba64eb1d27ceef..7ce329e24a63b8c47b9c0d9d1a5caffd6f960f81 100644 (file)
@@ -640,10 +640,13 @@ void Application::SigAbrtHandler(int)
 
        DisplayBugMessage(ofs);
 
+#ifndef _WIN32
+       ofs << "\n";
        ofs.close();
 
-#ifndef _WIN32
        GetDebuggerBacktrace(fname);
+#else /* _WIN32 */
+       ofs.close();
 #endif /* _WIN32 */
 }
 #else /* _WIN32 */