diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 9fa2b2646..5da593452 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -44,13 +44,13 @@ # include // for gethostname() #endif -#include -#include -#include -#include -#include #include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -188,9 +188,11 @@ void segfault_handler(int signo) { } #endif -static void fg_terminate() +[[noreturn]] static void fg_terminate() { - flightgear::fatalMessageBox("Fatal exception", "Uncaught exception on some thread"); + cerr << "Running FlightGear's terminate handler. The program is going to " + "exit due to a fatal error condition, sorry." << std::endl; + std::abort(); } // Detect SSE2 support for x86, it is always available for x86_64