projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zomo refactor: move m_frontend_database to Frontend
[metaproxy-moved-to-github.git]
/
src
/
metaproxy_prog.cpp
diff --git
a/src/metaproxy_prog.cpp
b/src/metaproxy_prog.cpp
index
5d176ae
..
a4bb72b
100644
(file)
--- a/
src/metaproxy_prog.cpp
+++ b/
src/metaproxy_prog.cpp
@@
-23,6
+23,7
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <yaz/daemon.h>
#include <yaz/sc.h>
#include <yaz/daemon.h>
#include <yaz/sc.h>
+#include <yaz/backtrace.h>
#include <iostream>
#include <stdexcept>
#include <libxml/xinclude.h>
#include <iostream>
#include <stdexcept>
#include <libxml/xinclude.h>
@@
-123,6
+124,7
@@
static int sc_main(
const char *pidfile = 0;
const char *uid = 0;
const char *pidfile = 0;
const char *uid = 0;
+ yaz_enable_panic_backtrace(argv[0]);
set_log_prefix();
while ((ret = options("c{config}:Dh{help}l:m:p:tu:v:V{version}w:X",
set_log_prefix();
while ((ret = options("c{config}:Dh{help}l:m:p:tu:v:V{version}w:X",
@@
-258,9
+260,11
@@
static int sc_main(
yaz_sc_running(s);
yaz_sc_running(s);
- yaz_daemon("metaproxy", mode, mode == YAZ_DAEMON_DEBUG ?
- work_debug : work_normal, router, pidfile, uid);
+ yaz_daemon("metaproxy", mode | YAZ_DAEMON_LOG_REOPEN,
+ mode == YAZ_DAEMON_DEBUG ? work_debug : work_normal,
+ router, pidfile, uid);
}
}
+ delete router;
}
catch (std::logic_error &e) {
yaz_log(YLOG_FATAL,"std::logic error: %s" , e.what() );
}
catch (std::logic_error &e) {
yaz_log(YLOG_FATAL,"std::logic error: %s" , e.what() );