projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d609c06
)
Only use kill on POSIX systems
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 29 Oct 2012 12:01:17 +0000
(13:01 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 29 Oct 2012 12:01:17 +0000
(13:01 +0100)
src/metaproxy_prog.cpp
patch
|
blob
|
history
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
f8ead5c
..
28651ae
100644
(file)
--- 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);
}