diff options
author | Chirag Davé <c@chirag.io> | 2016-05-04 21:40:28 -0700 |
---|---|---|
committer | Chirag Davé <c@chirag.io> | 2016-05-09 08:20:58 -0700 |
commit | 326231611bda6808b579ab7286e471c36f62e98c (patch) | |
tree | af2d8a5040e60555e3f2f18e36acc6f1b2d3c193 /src/init.cpp | |
parent | 88b77c7da0a672c89e24df37ea6e9085b4e2a05c (diff) |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index b06f448a00..a9b3f88a32 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() { |