aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorChirag Davé <[email protected]>2016-05-04 21:40:28 -0700
committerChirag Davé <[email protected]>2016-05-09 08:20:58 -0700
commit326231611bda6808b579ab7286e471c36f62e98c (patch)
treeaf2d8a5040e60555e3f2f18e36acc6f1b2d3c193 /src/init.cpp
parentMerge #7980: [qa] smartfees: Properly use ordered dict (diff)
downloaddiscoin-326231611bda6808b579ab7286e471c36f62e98c.tar.xz
discoin-326231611bda6808b579ab7286e471c36f62e98c.zip
fReopenDebugLog and fRequestShutdown should be type sig_atomic_t
This allows access as an atomic variable in the presence of async interrupts. See issue #7433 for more details fixes: #7433
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index b06f448a0..a9b3f88a3 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -125,7 +125,7 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
// shutdown thing.
//
-volatile bool fRequestShutdown = false;
+volatile sig_atomic_t fRequestShutdown = false;
void StartShutdown()
{