From 513ec560d4e1aa53a54228be5b630c0a904ef023 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Tue, 1 Oct 2013 09:44:56 +0200 Subject: [PATCH] log start and end of Shutdown() - could be helpful when debugging shutdown related problems Rebased-by: Warren Togami Rebased-from: ced3c248168941fbbd42d5a3807657a88be6a54e --- src/init.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index 5ae4a80eb..50e30972f 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -89,6 +89,7 @@ static CCoinsViewDB *pcoinsdbview; void Shutdown() { + printf("Shutdown : In progress...\n"); static CCriticalSection cs_Shutdown; TRY_LOCK(cs_Shutdown, lockShutdown); if (!lockShutdown) return; @@ -114,6 +115,7 @@ void Shutdown() boost::filesystem::remove(GetPidFile()); UnregisterWallet(pwalletMain); delete pwalletMain; + printf("Shutdown : done\n"); } //