projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible deadlock in backtrace YAZ-856
[yaz-moved-to-github.git]
/
zoom
/
zoomsh.c
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
fa4c0f8
..
37f5452
100644
(file)
--- a/
zoom/zoomsh.c
+++ b/
zoom/zoomsh.c
@@
-18,6
+18,7
@@
#include <string.h>
#include <yaz/wrbuf.h>
#include <yaz/log.h>
#include <string.h>
#include <yaz/wrbuf.h>
#include <yaz/log.h>
+#include <yaz/backtrace.h>
#include <yaz/options.h>
#if HAVE_READLINE_READLINE_H
#include <yaz/options.h>
#if HAVE_READLINE_READLINE_H
@@
-1004,7
+1005,10
@@
static int zoomsh(int argc, char **argv)
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
- int ret = zoomsh(argc, argv);
+ int ret;
+
+ yaz_enable_panic_backtrace(*argv);
+ ret = zoomsh(argc, argv);
exit(ret);
}
/*
exit(ret);
}
/*