From 8b716f337dbfc58d90235e1dffc643dc354a9aa2 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 18 Jul 2015 19:24:46 +0200 Subject: [PATCH] Get rid of this strange mass-closing stuff that only causes trouble. Fix nothing-being-logged-issue. --- src/s_bsd.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/s_bsd.c b/src/s_bsd.c index 1e01e3225..8d82b1668 100644 --- a/src/s_bsd.c +++ b/src/s_bsd.c @@ -591,13 +591,6 @@ char logbuf[BUFSIZ]; #ifdef HAVE_SYSLOG closelog(); /* temporary close syslog, as we mass close() fd's below... */ #endif -#ifndef NOCLOSEFD -for (fd = 3; fd < MAXCONNECTIONS; fd++) -{ - (void)close(fd); -} -(void)close(1); -#endif if (bootopt & BOOT_TTY) /* debugging is going to a tty */ goto init_dgram;