projects
/
idzebra-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:
a82fb3f
)
For UNIX process ID is logged.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 1 Oct 2001 08:56:58 +0000
(08:56 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 1 Oct 2001 08:56:58 +0000
(08:56 +0000)
index/main.c
patch
|
blob
|
history
diff --git
a/index/main.c
b/index/main.c
index
c2b16c1
..
7a22d9a
100644
(file)
--- a/
index/main.c
+++ b/
index/main.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: main.c,v $
* 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.
*
* 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 <stdio.h>
*
*/
#include <stdio.h>
+#include <string.h>
#include <assert.h>
#ifdef WIN32
#include <io.h>
#include <assert.h>
#ifdef WIN32
#include <io.h>
@@
-317,11
+321,17
@@
int main (int argc, char **argv)
int nsections = 0;
int disableCommit = 0;
size_t mem_max = 0;
int nsections = 0;
int disableCommit = 0;
size_t mem_max = 0;
-
+ char nbuf[100];
struct recordGroup rGroupDef;
nmem_init ();
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;
#if ZEBRASDR
zebraSdr_std ();
rGroupDef.useSDR = 0;