From: Michael Friedrich Date: Wed, 11 Mar 2015 15:31:30 +0000 (+0100) Subject: Fix formatting for the GDB stacktrace X-Git-Tag: v2.3.1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1a07ad129fcc77b3b9e6b53e116072ca794df6e;p=icinga2 Fix formatting for the GDB stacktrace fixes #8684 --- diff --git a/lib/base/application.cpp b/lib/base/application.cpp index daa4a3fcd..7ce329e24 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -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 */