X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Fstatserv.c;h=7587618969950794d0eb4e4ec0dce931321bc3d2;hb=b835ec5cc4cd3a601f589e948f3d1220f179710f;hp=3c35cfbc2e5e2fa6f499a89fe9bb216ba1c762e7;hpb=2004bbd9b3bbce5eb8ecc49520255b3d0bf578b9;p=yaz-moved-to-github.git diff --git a/server/statserv.c b/server/statserv.c index 3c35cfb..7587618 100644 --- a/server/statserv.c +++ b/server/statserv.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: statserv.c,v $ - * Revision 1.30 1995-11-01 13:54:59 quinn + * Revision 1.32 1996-01-19 15:41:52 quinn + * *** empty log message *** + * + * Revision 1.31 1995/11/17 11:09:39 adam + * Added new option '-c' to specify configuration name in control block. + * + * Revision 1.30 1995/11/01 13:54:59 quinn * Minor adjustments * * Revision 1.29 1995/10/30 12:41:29 quinn @@ -231,7 +237,7 @@ static void listener(IOCHAN h, int event) if (control_block.dynamic) { IOCHAN pp; - /* close our half of the listener sockets */ + /* close our half of the listener socket */ for (pp = iochan_getchan(); pp; pp = iochan_getnext(pp)) { COMSTACK l = iochan_getdata(pp); @@ -362,7 +368,7 @@ int statserv_main(int argc, char **argv) int protocol = control_block.default_proto; me = argv[0]; - while ((ret = options("a:szSl:v:u:", argv, argc, &arg)) != -2) + while ((ret = options("a:szSl:v:u:c:", argv, argc, &arg)) != -2) { switch (ret) { @@ -385,10 +391,14 @@ int statserv_main(int argc, char **argv) strcpy(control_block.apdufile, arg ? arg : ""); break; case 'u': strcpy(control_block.setuid, arg ? arg : ""); break; + case 'c': + strcpy(control_block.configname, arg ? arg : ""); break; default: - fprintf(stderr, "Usage: %s [ -a -v -l -u -zsS ... ]\n", me); + fprintf(stderr, "Usage: %s [ -a -v " + " -l -u -c " + " -zsS ... ]\n", me); exit(1); - } + } } if (control_block.dynamic) signal(SIGCHLD, catchchld);