From b8518fdcc17653703a49cfce96271df40f9b79b0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 4 Jul 2012 12:59:56 +0200 Subject: [PATCH] Postpone yaz_daemon_stop until out of router loop --- src/metaproxy_prog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 76113f3..d082124 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -54,7 +54,6 @@ static void sig_usr1_handler(int s) { yaz_log(YLOG_LOG, "metaproxy received SIGUSR1"); routerp->stop(); - yaz_daemon_stop(); } static void sig_term_handler(int s) @@ -80,6 +79,7 @@ static void work_common(void *data) mp::Package pack; pack.router(*routerp).move(); yaz_log(YLOG_LOG, "metaproxy stop"); /* only for graceful stop */ + yaz_daemon_stop(); _exit(0); } -- 1.7.10.4