Sun Sep 17 21:26:16 CEST 2000: Martin Schulze <joey@infodrom.ffis.de>

Don't close open sockets upon reload.  Thanks to Bill Nottingham.
This commit is contained in:
Joey Schulze 2000-09-17 19:30:50 +00:00
parent afcd97602f
commit a1775f1d8c

View File

@ -422,6 +422,9 @@ static char sccsid[] = "@(#)syslogd.c 5.27 (Berkeley) 10/10/88";
* control characters '\177' through '\237' and contained a * control characters '\177' through '\237' and contained a
* single-byte buffer overflow. Thanks to Solar Designer * single-byte buffer overflow. Thanks to Solar Designer
* <solar@false.com>. * <solar@false.com>.
*
* Sun Sep 17 21:26:16 CEST 2000: Martin Schulze <joey@infodrom.ffis.de>
* Don't close open sockets upon reload. Thanks to Bill Nottingham.
*/ */
@ -2346,7 +2349,10 @@ void init()
#ifdef SYSLOG_UNIXAF #ifdef SYSLOG_UNIXAF
for (i = 0; i < nfunix; i++) { for (i = 0; i < nfunix; i++) {
if (funix[i] != -1) if (funix[i] != -1)
/* Don't close the socket, preserve it instead
close(funix[i]); close(funix[i]);
*/
continue;
if ((funix[i] = create_unix_socket(funixn[i])) != -1) if ((funix[i] = create_unix_socket(funixn[i])) != -1)
dprintf("Opened UNIX socket `%s'.\n", funixn[i]); dprintf("Opened UNIX socket `%s'.\n", funixn[i]);
} }