From 3ad0bd0907d1e9843632e0130151abee43a50492 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 29 Oct 2012 13:01:17 +0100 Subject: [PATCH] Only use kill on POSIX systems --- src/metaproxy_prog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index f8ead5c..28651ae 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -90,7 +90,9 @@ static void work_common(void *data) mp::Package pack; pack.router(*routerp).move(); yaz_log(YLOG_LOG, "metaproxy stop"); /* only for graceful stop */ +#if HAVE_UNISTD_H kill(-process_group, SIGTERM); /* kill all children processes as well */ +#endif _exit(0); } -- 1.7.10.4