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:
f2ef265
)
Don't call filter destructors on SIGTERM CP-3770
cp-3770
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 22 Apr 2014 19:05:41 +0000
(21:05 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 22 Apr 2014 19:05:41 +0000
(21:05 +0200)
src/metaproxy_prog.cpp
patch
|
blob
|
history
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
fa0ea33
..
167a58a
100644
(file)
--- a/
src/metaproxy_prog.cpp
+++ b/
src/metaproxy_prog.cpp
@@
-87,8
+87,12
@@
static void work_common(void *data)
mp::Package pack;
pack.router(*routerp).move();
yaz_log(YLOG_LOG, "metaproxy stop");
- delete routerp;
- routerp = 0;
+
+ if (sig_received != SIGTERM)
+ {
+ delete routerp;
+ routerp = 0;
+ }
_exit(0);
}