From cad0d3221732216fe2ab02e574eda4508b915584 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 1 Oct 2001 08:56:58 +0000 Subject: [PATCH] For UNIX process ID is logged. --- index/main.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/index/main.c b/index/main.c index c2b16c1..7a22d9a 100644 --- a/index/main.c +++ b/index/main.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: main.c,v $ - * Revision 1.78 2000-10-17 12:37:09 adam + * Revision 1.79 2001-10-01 08:56:58 adam + * For UNIX process ID is logged. + * + * Revision 1.78 2000/10/17 12:37:09 adam * Fixed notification of live-updates. Fixed minor problem with mf_init * where it didn't handle shadow area file names correctly. * @@ -284,6 +287,7 @@ * */ #include +#include #include #ifdef WIN32 #include @@ -317,11 +321,17 @@ int main (int argc, char **argv) int nsections = 0; int disableCommit = 0; size_t mem_max = 0; - + char nbuf[100]; struct recordGroup rGroupDef; nmem_init (); +#ifdef WIN32 +#else + sprintf(nbuf, "%.40s(%d)", *argv, getpid()); + yaz_log_init_prefix (nbuf); +#endif + #if ZEBRASDR zebraSdr_std (); rGroupDef.useSDR = 0; -- 1.7.10.4