From: Adam Dickmeiss Date: Thu, 3 May 2012 14:41:38 +0000 (+0200) Subject: metaproxy: kill children too upon SIGUSR1 exit X-Git-Tag: v1.3.35~6 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=9ec9630d5b143f0fc57e999a7b7b1710f990e19f;p=metaproxy-moved-to-github.git metaproxy: kill children too upon SIGUSR1 exit --- 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); }