/* This file is (c) 2008-2012 Konstantin Isakov * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ #include "termination.hh" #include #include static void termHandler() { qDebug() << "GoldenDict has crashed unexpectedly.\n\n"; if ( logFilePtr && logFilePtr->isOpen() ) logFilePtr->close(); abort(); } void installTerminationHandler() { std::set_terminate( termHandler ); }