File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
123123// shutdown thing.
124124//
125125
126- volatile sig_atomic_t fRequestShutdown = false ;
126+ std::atomic< bool > fRequestShutdown ( false ) ;
127127
128128void StartShutdown ()
129129{
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ string strMiscWarning;
113113bool fLogTimestamps = DEFAULT_LOGTIMESTAMPS;
114114bool fLogTimeMicros = DEFAULT_LOGTIMEMICROS;
115115bool fLogIPs = DEFAULT_LOGIPS;
116- volatile sig_atomic_t fReopenDebugLog = false ;
116+ std::atomic< bool > fReopenDebugLog ( false ) ;
117117CTranslationInterface translationInterface;
118118
119119/* * Init OpenSSL library multithreading support */
Original file line number Diff line number Diff line change 1818#include " tinyformat.h"
1919#include " utiltime.h"
2020
21+ #include < atomic>
2122#include < exception>
2223#include < map>
2324#include < stdint.h>
2829#include < boost/signals2/signal.hpp>
2930#include < boost/thread/exceptions.hpp>
3031
31- #ifndef WIN32
32- #include < signal.h>
33- #endif
34-
3532static const bool DEFAULT_LOGTIMEMICROS = false ;
3633static const bool DEFAULT_LOGIPS = false ;
3734static const bool DEFAULT_LOGTIMESTAMPS = true ;
@@ -54,7 +51,7 @@ extern std::string strMiscWarning;
5451extern bool fLogTimestamps ;
5552extern bool fLogTimeMicros ;
5653extern bool fLogIPs ;
57- extern volatile sig_atomic_t fReopenDebugLog ;
54+ extern std::atomic< bool > fReopenDebugLog ;
5855extern CTranslationInterface translationInterface;
5956
6057extern const char * const BITCOIN_CONF_FILENAME;
You can’t perform that action at this time.
0 commit comments