X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-proxy-main.cpp;h=daa268a62ad873d94f2da9531965f773f6b964f5;hp=5c9ff2dc72d9be0d8ad9df8a32b1196c81f26b0a;hb=4f79f9b5b0095b2f81b1ce583f0f82462f9ee36a;hpb=3f9c6b7417f3b72f1987327b860367b7d25f6303 diff --git a/src/yaz-proxy-main.cpp b/src/yaz-proxy-main.cpp index 5c9ff2d..daa268a 100644 --- a/src/yaz-proxy-main.cpp +++ b/src/yaz-proxy-main.cpp @@ -1,5 +1,5 @@ /* This file is part of YAZ proxy - Copyright (C) 1998-2008 Index Data + Copyright (C) 1998-2011 Index Data YAZ proxy 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 @@ -59,7 +59,7 @@ void usage(char *prog) fprintf (stderr, "%s: [-a log] [-c config] [-D]\n" " [-i sec] [-l log] [-m num] [-n num] [-p pidfile]" " [-t target] [-T sec] [-u uid]\n" - " [-v level] [-X] @:port\n", prog); + " [-v level] [-X] [-V] @:port\n", prog); exit (1); } @@ -232,7 +232,7 @@ static void child_run(void *data) struct rlimit limit_data; limit_data.rlim_cur = no_limit_files; limit_data.rlim_max = no_limit_files; - + yaz_log(YLOG_LOG, "0 setrlimit NOFILE cur=%ld max=%ld", (long) limit_data.rlim_cur, (long) limit_data.rlim_max); if (setrlimit(RLIMIT_NOFILE, &limit_data)) @@ -247,7 +247,7 @@ static void child_run(void *data) yaz_log(YLOG_LOG, "0 getrlimit NOFILE cur=%ld max=%ld", (long) limit_data.rlim_cur, (long) limit_data.rlim_max); #endif - + while (m->processEvent() > 0) ; @@ -258,7 +258,7 @@ int main(int argc, char **argv) { #if YAZ_HAVE_XSLT xmlInitMemory(); - + LIBXML_TEST_VERSION #endif SocketManager mySocketManager; @@ -276,6 +276,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab