SignalHandlers: emit GlobalEvents::SHUTDOWN

.. instead of calling g_main_loop_quit(), which may dead-lock.
This commit is contained in:
Max Kellermann 2013-01-15 10:59:19 +01:00
parent f9fc3a42cc
commit 3fcf17cb79

View File

@ -36,7 +36,7 @@
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)