From 3fcf17cb79c1bbec631c1a440eb05953ece87b0d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Jan 2013 10:59:19 +0100 Subject: SignalHandlers: emit GlobalEvents::SHUTDOWN .. instead of calling g_main_loop_quit(), which may dead-lock. --- src/SignalHandlers.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SignalHandlers.cxx b/src/SignalHandlers.cxx index a1938c737..d438eb703 100644 --- a/src/SignalHandlers.cxx +++ b/src/SignalHandlers.cxx @@ -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) -- cgit v1.2.3