Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.questions Subject: Re: Starting a daemon on a SVR3 Message-ID: <5697:Jan423:05:2891@kramden.acf.nyu.edu> Date: 4 Jan 91 23:05:28 GMT References: <25360@adm.brl.mil> <1752@dschub.dsc.com> <1991Jan03.132149.3565@scuzzy.in-berlin.de> Organization: IR Lines: 12 In article <1991Jan03.132149.3565@scuzzy.in-berlin.de> src@scuzzy.in-berlin.de (Heiko Blume) writes: > for ( i = 0 ; i < sysconf(_SC_OPEN_MAX) ; i++ ) > close( i ); i = sysconf(_SC_OPEN_MAX); while(i) close(--i); There's no reason to be unnecessarily inefficient (or verbose), or to clog trace logs. ---Dan