Starting a daemon on a SVR3

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Sat Jan 5 10:05:28 AEST 1991


In article <1991Jan03.132149.3565 at scuzzy.in-berlin.de> src at 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



More information about the Comp.unix.questions mailing list