Update logging.cpp
This commit is contained in:
parent
2ee1930f65
commit
4f2230d1d6
@ -278,9 +278,12 @@ void process_fatal_error(CSlice message) {
|
|||||||
if (callback) {
|
if (callback) {
|
||||||
callback(message);
|
callback(message);
|
||||||
}
|
}
|
||||||
// replaced std::abort(); with the following method:
|
#if TD_THREAD_UNSUPPORTED || TD_EVENTFD_UNSUPPORTED
|
||||||
|
std::abort();
|
||||||
|
#else
|
||||||
struct sigaction sa{};
|
struct sigaction sa{};
|
||||||
Debug::DeathHandler::HandleSignal(SIGABRT, &sa, nullptr);
|
Debug::DeathHandler::HandleSignal(SIGABRT, &sa, nullptr);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
Loading…
Reference in New Issue
Block a user