X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=server%2Fstatserv.c;h=3a0435b863ad231371a5e9a8721a856b42b70182;hb=cb914e4afd1e815bf47604efdfa964cee69557fa;hp=f40caac03ee851380a4abd7ceac4a86bf01b17bf;hpb=9d17b5cfa8555d4762f162785edede1e0314cc07;p=yaz-moved-to-github.git diff --git a/server/statserv.c b/server/statserv.c index f40caac..3a0435b 100644 --- a/server/statserv.c +++ b/server/statserv.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: statserv.c,v $ - * Revision 1.33 1996-02-10 12:23:49 quinn + * Revision 1.34 1996-02-21 13:12:07 quinn + * *** empty log message *** + * + * Revision 1.33 1996/02/10 12:23:49 quinn * Enable inetd operations fro TCP/IP stack * * Revision 1.32 1996/01/19 15:41:52 quinn @@ -184,9 +187,19 @@ static void listener(IOCHAN h, int event) else if (res == 0) /* child */ { char nbuf[100]; + IOCHAN pp; close(hand[0]); child = 1; + for (pp = iochan_getchan(); pp; pp = iochan_getnext(pp)) + { + if (pp != h) + { + COMSTACK l = iochan_getdata(pp); + cs_close(l); + iochan_destroy(pp); + } + } sprintf(nbuf, "%s(%d)", me, getpid()); log_init(control_block.loglevel, nbuf, 0); }