aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-03-23 18:14:12 -0400
committerGavin Andresen <gavinandresen@gmail.com>2013-04-03 19:58:47 -0400
commit723035bb6839c5d65bfee96d501a8c54814778e3 (patch)
treed0d80686edc2c25446fcb0a67d68c8c12722f935 /src/init.cpp
parentb31499ec72edd1554d4612d1b54808fce0360e14 (diff)
Have Qt poll for shutdown requested, the QT way.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 3ccd01e3bc..ee69d2207f 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -61,8 +61,8 @@ enum BindFlags {
// immediately and the parent exits from main().
//
// Shutdown for Qt is very similar, only it uses a QTimer to detect
-// fRequestShutdown getting set (either by RPC stop or SIGTERM)
-// and then does the normal Qt shutdown thing.
+// fRequestShutdown getting set, and then does the normal Qt
+// shutdown thing.
//
volatile bool fRequestShutdown = false;
@@ -71,6 +71,10 @@ void StartShutdown()
{
fRequestShutdown = true;
}
+bool ShutdownRequested()
+{
+ return fRequestShutdown;
+}
static CCoinsViewDB *pcoinsdbview;