mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use asio signal handling in Application (RIPD-140):
* Use signal_set as cross platform way of handling SIGINT * Remove polling on main thread for shutdown. * Add extra logging for received signal. * Clean up exit handling on error in setup routines. * Reuse isStopped() from Stoppable for status (could be isStopping() instead). * Ctrl-C should now work for standalone mode as well on Windows. Also small fixes to Resolver: * Add Resolver prefix to logging. * Fix AsyncObject::removeReference() logic. * Fix work remaining logic.
This commit is contained in:
committed by
Nik Bougalis
parent
f3ebd508d6
commit
b14751aad9
@@ -83,8 +83,8 @@ public:
|
|||||||
|
|
||||||
void removeReference ()
|
void removeReference ()
|
||||||
{
|
{
|
||||||
if (--m_pending)
|
if (--m_pending == 0)
|
||||||
(static_cast <Derived *> (this))->asyncHandlersComplete ();
|
(static_cast<Derived*>(this))->asyncHandlersComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user