mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-11 11:16:09 -05:00
feeb7b816a
Use SignalInterrupt object instead. There is a slight change in behavior here because the previous StartShutdown code used to abort on failure and the new code logs errors instead.
21 lines
601 B
C++
21 lines
601 B
C++
// Copyright (c) 2023 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#ifndef BITCOIN_NODE_ABORT_H
|
|
#define BITCOIN_NODE_ABORT_H
|
|
|
|
#include <util/translation.h>
|
|
|
|
#include <atomic>
|
|
#include <string>
|
|
|
|
namespace util {
|
|
class SignalInterrupt;
|
|
} // namespace util
|
|
|
|
namespace node {
|
|
void AbortNode(util::SignalInterrupt* shutdown, std::atomic<int>& exit_status, const std::string& debug_message, const bilingual_str& user_message = {});
|
|
} // namespace node
|
|
|
|
#endif // BITCOIN_NODE_ABORT_H
|