Skip to content

Commit 581c411

Browse files
committed
Properly comment about shutdown process in init.cpp file
1 parent 416af3e commit 581c411

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/init.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,11 @@ static const char* FEE_ESTIMATES_FILENAME="fee_estimates.dat";
102102
// created by AppInit() or the Qt main() function.
103103
//
104104
// A clean exit happens when StartShutdown() or the SIGTERM
105-
// signal handler sets fRequestShutdown, which triggers
106-
// the DetectShutdownThread(), which interrupts the main thread group.
107-
// DetectShutdownThread() then exits, which causes AppInit() to
108-
// continue (it .joins the shutdown thread).
109-
// Shutdown() is then
110-
// called to clean up database connections, and stop other
105+
// signal handler sets fRequestShutdown, which makes main thread's
106+
// WaitForShutdown() interrupts the thread group.
107+
// And then, WaitForShutdown() makes all other on-going threads
108+
// in the thread group join the main thread.
109+
// Shutdown() is then called to clean up database connections, and stop other
111110
// threads that should only be stopped after the main network-processing
112111
// threads have exited.
113112
//

0 commit comments

Comments
 (0)