projects
/
pazpar2-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:
6b40da0
)
Add mtrace start/stop. Requires MTRACE define
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 28 Mar 2011 08:57:39 +0000
(10:57 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 28 Mar 2011 08:57:39 +0000
(10:57 +0200)
src/pazpar2.c
patch
|
blob
|
history
diff --git
a/src/pazpar2.c
b/src/pazpar2.c
index
6680662
..
d6423a6
100644
(file)
--- a/
src/pazpar2.c
+++ b/
src/pazpar2.c
@@
-35,6
+35,11
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <yaz/options.h>
#include <yaz/sc.h>
+// #define MTRACE
+#ifdef MTRACE
+#include <mcheck.h>
+#endif
+
static struct conf_config *sc_stop_config = 0;
void child_handler(void *data)
@@
-222,10
+227,20
@@
int main(int argc, char **argv)
{
int ret;
yaz_sc_t s = yaz_sc_create("pazpar2", "Pazpar2");
+
+#ifdef MTRACE
+ mtrace();
+#endif
ret = yaz_sc_program(s, argc, argv, sc_main, sc_stop);
yaz_sc_destroy(&s);
+
+#ifdef MTRACE
+ muntrace();
+#endif
+
+
exit(ret);
}