From: Adam Dickmeiss Date: Mon, 1 Oct 2001 08:56:58 +0000 (+0000) Subject: For UNIX process ID is logged. X-Git-Tag: ZEBRA.1.1~4 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=cad0d3221732216fe2ab02e574eda4508b915584;p=idzebra-moved-to-github.git For UNIX process ID is logged. --- 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;