/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/node/abort.cpp
28 строк
992 B
Hennadii Stepanov
Fix compatibility with `-debuglogfile` command-line option
10 мар 2026, 15:56
Не верифицирован
10 мар 2026, 15:56
ddf2a06
Код
Авторство
О чём код?
// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <node/abort.h> #include <logging.h> #include <node/interface_ui.h> #include <node/warnings.h> #include <util/fs.h> #include <util/signalinterrupt.h> #include <util/translation.h> #include <atomic> #include <cstdlib> namespace node { void AbortNode(const std::function<bool()>& shutdown_request, std::atomic<int>& exit_status, const bilingual_str& message, node::Warnings* warnings) { if (warnings) warnings->Set(Warning::FATAL_INTERNAL_ERROR, message); InitError(strprintf(_("A fatal internal error occurred, see %s for details: %s"), fs::PathToString(LogInstance().m_file_path.filename()), message)); exit_status.store(EXIT_FAILURE); if (shutdown_request && !shutdown_request()) { LogError("Failed to send shutdown signal\n"); }; } } // namespace node