From 793996694632f95053e1ebf6c9a8f30fd38af9d0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 4 Oct 2012 08:14:15 +0000 Subject: [PATCH] At graceful stop, kill children processes Metaproxy already did this for normal stop (SIGTERM). This ensure that children processes spawned by modules are removed upon termination of graceful stop too. --- src/metaproxy_prog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index b72a6ac..f8ead5c 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -90,6 +90,7 @@ static void work_common(void *data) mp::Package pack; pack.router(*routerp).move(); yaz_log(YLOG_LOG, "metaproxy stop"); /* only for graceful stop */ + kill(-process_group, SIGTERM); /* kill all children processes as well */ _exit(0); } -- 1.7.10.4