diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-06-01 16:53:33 -0400 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-06-28 09:49:28 +0200 |
commit | e2d680a32d757de0ef8eb836047a0daa1d82e3c4 (patch) | |
tree | 5115b92fc4fe97697c27ad43617984551ae5646c /src/shutdown.h | |
parent | d9c7c2fd3ec7b0fcae7e0c9423bff6c6799dd67c (diff) |
util: Add SignalInterrupt class and use in shutdown.cpp
This change helps generalize shutdown code so an interrupt can be
provided to libbitcoinkernel callers. This may also be useful to
eventually de-globalize all of the shutdown code.
Co-authored-by: Russell Yanofsky <russ@yanofsky.org>
Co-authored-by: TheCharlatan <seb.kung@gmail.com>
Diffstat (limited to 'src/shutdown.h')
-rw-r--r-- | src/shutdown.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdown.h b/src/shutdown.h index c119bee96f..0e51575c5a 100644 --- a/src/shutdown.h +++ b/src/shutdown.h @@ -16,7 +16,7 @@ bool AbortNode(const std::string& strMessage, bilingual_str user_message = bilin /** Initialize shutdown state. This must be called before using either StartShutdown(), * AbortShutdown() or WaitForShutdown(). Calling ShutdownRequested() is always safe. */ -bool InitShutdownState(std::atomic<int>& exit_status); +void InitShutdownState(std::atomic<int>& exit_status); /** Request shutdown of the application. */ void StartShutdown(); |