From: Adam Dickmeiss Date: Mon, 29 Oct 2012 12:01:17 +0000 (+0100) Subject: Only use kill on POSIX systems X-Git-Tag: v1.3.50~5 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=3ad0bd0907d1e9843632e0130151abee43a50492;p=metaproxy-moved-to-github.git Only use kill on POSIX systems --- 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); }