File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
125
125
// shutdown thing.
126
126
//
127
127
128
- volatile bool fRequestShutdown = false ;
128
+ volatile sig_atomic_t fRequestShutdown = false ;
129
129
130
130
void StartShutdown ()
131
131
{
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ string strMiscWarning;
113
113
bool fLogTimestamps = DEFAULT_LOGTIMESTAMPS;
114
114
bool fLogTimeMicros = DEFAULT_LOGTIMEMICROS;
115
115
bool fLogIPs = DEFAULT_LOGIPS;
116
- volatile bool fReopenDebugLog = false ;
116
+ volatile sig_atomic_t fReopenDebugLog = false ;
117
117
CTranslationInterface translationInterface;
118
118
119
119
/* * Init OpenSSL library multithreading support */
Original file line number Diff line number Diff line change 28
28
#include < boost/signals2/signal.hpp>
29
29
#include < boost/thread/exceptions.hpp>
30
30
31
+ #ifndef WIN32
32
+ #include < signal.h>
33
+ #endif
34
+
31
35
static const bool DEFAULT_LOGTIMEMICROS = false ;
32
36
static const bool DEFAULT_LOGIPS = false ;
33
37
static const bool DEFAULT_LOGTIMESTAMPS = true ;
@@ -50,7 +54,7 @@ extern std::string strMiscWarning;
50
54
extern bool fLogTimestamps ;
51
55
extern bool fLogTimeMicros ;
52
56
extern bool fLogIPs ;
53
- extern volatile bool fReopenDebugLog ;
57
+ extern volatile sig_atomic_t fReopenDebugLog ;
54
58
extern CTranslationInterface translationInterface;
55
59
56
60
extern const char * const BITCOIN_CONF_FILENAME;
You can’t perform that action at this time.
0 commit comments