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:
d28c341
)
metaproxy: kill children too upon SIGUSR1 exit
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 3 May 2012 14:41:38 +0000
(16:41 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 3 May 2012 14:41:47 +0000
(16:41 +0200)
src/metaproxy_prog.cpp
patch
|
blob
|
history
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
a6fc78d
..
02f197f
100644
(file)
--- a/
src/metaproxy_prog.cpp
+++ b/
src/metaproxy_prog.cpp
@@
-78,7
+78,9
@@
static void work_common(void *data)
mp::Package pack;
pack.router(*routerp).move();
+ /* this only exits if graceful stop is received (sig_usr1_handler) */
yaz_log(YLOG_LOG, "metaproxy stop");
+ kill(-process_group, SIGTERM); /* kill all children processes as well */
_exit(0);
}