diff options
author | Max Kellermann <max@duempel.org> | 2013-01-15 10:59:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-15 10:59:28 +0100 |
commit | 3fcf17cb79c1bbec631c1a440eb05953ece87b0d (patch) | |
tree | 6732a24c371b31fa3239be688bb1484c95f38266 | |
parent | f9fc3a42cc859c90b55c10743bd84832fa156b98 (diff) | |
download | mpd-3fcf17cb79c1bbec631c1a440eb05953ece87b0d.tar.gz mpd-3fcf17cb79c1bbec631c1a440eb05953ece87b0d.tar.xz mpd-3fcf17cb79c1bbec631c1a440eb05953ece87b0d.zip |
SignalHandlers: emit GlobalEvents::SHUTDOWN
.. instead of calling g_main_loop_quit(), which may dead-lock.
-rw-r--r-- | src/SignalHandlers.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |