projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use optimized proximity for more cases.
[idzebra-moved-to-github.git]
/
index
/
zebrasrv.c
diff --git
a/index/zebrasrv.c
b/index/zebrasrv.c
index
c024465
..
0404b8f
100644
(file)
--- a/
index/zebrasrv.c
+++ b/
index/zebrasrv.c
@@
-1,8
+1,5
@@
-/* $Id: zebrasrv.c,v 1.21 2007-10-29 09:25:41 adam Exp $
- Copyright (C) 1995-2007
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) 1994-2009 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-773,7
+770,11
@@
static void bend_start(struct statserv_options_block *sob)
char pidstr[30];
sprintf(pidstr, "%ld", (long) getpid());
char pidstr[30];
sprintf(pidstr, "%ld", (long) getpid());
- write(fd, pidstr, strlen(pidstr));
+ if (write(fd, pidstr, strlen(pidstr)) != strlen(pidstr))
+ {
+ yaz_log(YLOG_ERRNO|YLOG_FATAL, "write fail %s", pidfname);
+ exit(1);
+ }
}
}
#endif
}
}
#endif
@@
-807,6
+808,7
@@
int main(int argc, char **argv)
sob->bend_start = bend_start;
sob->bend_stop = bend_stop;
#ifdef WIN32
sob->bend_start = bend_start;
sob->bend_stop = bend_stop;
#ifdef WIN32
+ strcpy(sob->service_name, "zebrasrv");
strcpy(sob->service_display_name, "Zebra Server");
#endif
statserv_setcontrol(sob);
strcpy(sob->service_display_name, "Zebra Server");
#endif
statserv_setcontrol(sob);
@@
-816,6
+818,7
@@
int main(int argc, char **argv)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab