X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=server%2Fstatserv.c;h=e9d7912f47bdfaac164cf7d868b69e035773e33a;hp=9cf20c89b8cd7b54fd813947104cbb96e824e99a;hb=a807bde38544a7aa45dd2988e504a1acb3fd30c0;hpb=43b1963c0e75ef802c8f5dd37bbc587d63188e72 diff --git a/server/statserv.c b/server/statserv.c index 9cf20c8..e9d7912 100644 --- a/server/statserv.c +++ b/server/statserv.c @@ -7,7 +7,11 @@ * Chas Woodfield, Fretwell Downing Datasystem. * * $Log: statserv.c,v $ - * Revision 1.45 1998-01-29 13:30:23 adam + * Revision 1.46 1998-01-30 15:24:57 adam + * Fixed bug in inetd code. The server listened on tcp:@:9999 even + * though it was started in inetd mode. + * + * Revision 1.45 1998/01/29 13:30:23 adam * Better event handle system for NT/Unix. * * Revision 1.44 1997/11/07 13:31:52 adam @@ -628,6 +632,8 @@ static void inetd_connection(int what) { logf(LOG_FATAL, "Failed to create association structure"); } + chan->next = pListener; + pListener = chan; } else { @@ -806,10 +812,6 @@ int statserv_start(int argc, char **argv) return(1); } } - - if ((pListener == NULL) && *control_block.default_listen) - add_listener(control_block.default_listen, protocol); - #ifndef WINDOWS if (inetd) inetd_connection(protocol); @@ -837,6 +839,9 @@ int statserv_start(int argc, char **argv) } #endif /* WINDOWS */ + if ((pListener == NULL) && *control_block.default_listen) + add_listener(control_block.default_listen, protocol); + logf(LOG_LOG, "Entering event loop."); if (pListener == NULL)