From 723035bb6839c5d65bfee96d501a8c54814778e3 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Sat, 23 Mar 2013 18:14:12 -0400 Subject: Have Qt poll for shutdown requested, the QT way. --- src/init.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 3ccd01e3b..ee69d2207 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; -- cgit v1.2.3