close(fd);
}
#endif /* TIOCNOTTY */
{
struct rlimit rl;
if (getrlimit(RLIMIT_NOFILE, &rl) == 0) {
int i;
for(i = 3; i < rl.rlim_max; i++)
close(i);
/* Reinitialize the log (because of the fork above). */
log_init(__progname, options.log_level, options.log_facility, log_stderr);