diff options
| author | Chirag Davé <[email protected]> | 2016-05-04 21:40:28 -0700 |
|---|---|---|
| committer | Chirag Davé <[email protected]> | 2016-05-09 08:20:58 -0700 |
| commit | 326231611bda6808b579ab7286e471c36f62e98c (patch) | |
| tree | af2d8a5040e60555e3f2f18e36acc6f1b2d3c193 /src/init.cpp | |
| parent | Merge #7980: [qa] smartfees: Properly use ordered dict (diff) | |
| download | discoin-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.cpp | 2 |
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() { |