From e1c78a0685c0b99c583d37fec337e1a04fd54ffa Mon Sep 17 00:00:00 2001 From: Anton Matveenko Date: Mon, 2 Dec 2013 10:48:35 +0700 Subject: [PATCH] fix loop unlooping on SIGHUP As SIGHUP is being handled in the same way as SIGTERM we should unloop event loop on this signal. If we don't do it it leads to server hang on SIGHUP. --- blizzard/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blizzard/server.cpp b/blizzard/server.cpp index 4903a92..3add507 100644 --- a/blizzard/server.cpp +++ b/blizzard/server.cpp @@ -425,7 +425,7 @@ static void wakeup_callback(EV_P_ ev_io *w, int tev) static void silent_callback(EV_P_ ev_timer *w, int tev) { - if (0 != coda_terminate) + if (0 != coda_terminate || 0 != coda_changecfg) { ev_timer_stop(EV_A_ w); ev_break(EV_A_ EVUNLOOP_ALL);