SignalHandlers: emit GlobalEvents::SHUTDOWN
.. instead of calling g_main_loop_quit(), which may dead-lock.
This commit is contained in:
parent
f9fc3a42cc
commit
3fcf17cb79
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
static void exit_signal_handler(G_GNUC_UNUSED int signum)
|
static void exit_signal_handler(G_GNUC_UNUSED int signum)
|
||||||
{
|
{
|
||||||
main_loop->Break();
|
GlobalEvents::Emit(GlobalEvents::SHUTDOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void reload_signal_handler(G_GNUC_UNUSED int signum)
|
static void reload_signal_handler(G_GNUC_UNUSED int signum)
|
||||||
|
Loading…
Reference in New Issue
Block a user