Index: src/ircd.c
===================================================================
RCS file: /home/cmunk/ircsystems/cvsroot/unreal/src/ircd.c,v
retrieving revision 1.1.1.1.6.1.2.190.2.48
diff -u -r1.1.1.1.6.1.2.190.2.48 ircd.c
--- src/ircd.c	6 Dec 2009 16:31:42 -0000	1.1.1.1.6.1.2.190.2.48
+++ src/ircd.c	4 Jan 2010 13:10:18 -0000
@@ -361,8 +361,7 @@
 	if (!(bootopt & (BOOT_TTY | BOOT_DEBUG)))
 		(void)close(2);
 	(void)close(1);
-	if ((bootopt & BOOT_CONSOLE) || isatty(0))
-		(void)close(0);
+	(void)close(0);
 	(void)execv(MYNAME, myargv);
 #else
 	close_connections();
Index: src/s_bsd.c
===================================================================
RCS file: /home/cmunk/ircsystems/cvsroot/unreal/src/s_bsd.c,v
retrieving revision 1.1.1.1.6.1.2.175.2.32
diff -u -r1.1.1.1.6.1.2.175.2.32 s_bsd.c
--- src/s_bsd.c	1 Jan 2010 19:49:05 -0000	1.1.1.1.6.1.2.175.2.32
+++ src/s_bsd.c	4 Jan 2010 13:10:18 -0000
@@ -605,6 +605,9 @@
 # endif
 #endif
 #ifndef _WIN32
+#ifdef HAVE_SYSLOG
+closelog(); /* temporary close syslog, as we mass close() fd's below... */
+#endif
 #ifndef NOCLOSEFD
 for (fd = 3; fd < MAXCONNECTIONS; fd++)
 {
@@ -656,6 +659,9 @@
 	if (!(bootopt & BOOT_DEBUG))
 	close(fileno(stderr));
 #endif
+#ifdef HAVE_SYSLOG
+openlog("ircd", LOG_PID | LOG_NDELAY, LOG_DAEMON); /* reopened now */
+#endif
 	memset(local, 0, sizeof(aClient*) * MAXCONNECTIONS);
 	LastSlot = -1;
 
