Update logging.cpp

This commit is contained in:
Andrea Cavalli 2020-09-02 01:44:17 +02:00
parent 2ee1930f65
commit 4f2230d1d6

View File

@ -278,9 +278,12 @@ void process_fatal_error(CSlice message) {
if (callback) {
callback(message);
}
// replaced std::abort(); with the following method:
#if TD_THREAD_UNSUPPORTED || TD_EVENTFD_UNSUPPORTED
std::abort();
#else
struct sigaction sa{};
Debug::DeathHandler::HandleSignal(SIGABRT, &sa, nullptr);
#endif
}
namespace {