aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorKyuntae Ethan Kim <ethan.kyuntae.kim@gmail.com>2017-06-29 01:24:41 +0900
committerKyuntae Ethan Kim <ethan.kyuntae.kim@gmail.com>2017-07-06 13:36:11 +0900
commit581c41157d76e410ca8f968853e09068a3635815 (patch)
treead4aab8c26ca6e5bcca2a97c260c844e0462365e /src/init.cpp
parent416af3edf5b5ab265acf95568f2bc9eabd3d96de (diff)
downloadbitcoin-581c41157d76e410ca8f968853e09068a3635815.tar.xz
Properly comment about shutdown process in init.cpp file
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 57232c7df3..9a8f1b0850 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -102,12 +102,11 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
// created by AppInit() or the Qt main() function.
//
// A clean exit happens when StartShutdown() or the SIGTERM
-// signal handler sets fRequestShutdown, which triggers
-// the DetectShutdownThread(), which interrupts the main thread group.
-// DetectShutdownThread() then exits, which causes AppInit() to
-// continue (it .joins the shutdown thread).
-// Shutdown() is then
-// called to clean up database connections, and stop other
+// signal handler sets fRequestShutdown, which makes main thread's
+// WaitForShutdown() interrupts the thread group.
+// And then, WaitForShutdown() makes all other on-going threads
+// in the thread group join the main thread.
+// Shutdown() is then called to clean up database connections, and stop other
// threads that should only be stopped after the main network-processing
// threads have exited.
//