From 9ec9630d5b143f0fc57e999a7b7b1710f990e19f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 3 May 2012 16:41:38 +0200 Subject: [PATCH] metaproxy: kill children too upon SIGUSR1 exit --- src/metaproxy_prog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index a6fc78d..02f197f 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -78,7 +78,9 @@ static void work_common(void *data) mp::Package pack; pack.router(*routerp).move(); + /* this only exits if graceful stop is received (sig_usr1_handler) */ yaz_log(YLOG_LOG, "metaproxy stop"); + kill(-process_group, SIGTERM); /* kill all children processes as well */ _exit(0); } -- 1.7.10.4