Only use kill on POSIX systems
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Oct 2012 12:01:17 +0000 (13:01 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 29 Oct 2012 12:01:17 +0000 (13:01 +0100)
src/metaproxy_prog.cpp

index f8ead5c..28651ae 100644 (file)
@@ -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);
 }