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:
8030de7
)
Fix Control-C does not stop Metaproxy spawned by shell MP-610
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 15 Apr 2015 13:15:01 +0000
(15:15 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 15 Apr 2015 13:15:12 +0000
(15:15 +0200)
Check for fork mode instead (-D) - rather than debug (-X)
src/metaproxy_prog.cpp
patch
|
blob
|
history
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
943c3e0
..
c470b90
100644
(file)
--- a/
src/metaproxy_prog.cpp
+++ b/
src/metaproxy_prog.cpp
@@
-266,7
+266,7
@@
static int sc_main(
yaz_sc_running(s);
yaz_daemon("metaproxy", mode | YAZ_DAEMON_LOG_REOPEN,
- mode == YAZ_DAEMON_DEBUG ? work_debug : work_normal,
+ (mode & YAZ_DAEMON_FORK) ? work_normal : work_debug,
router, pidfile, uid);
}
delete router;