Date: Mon, 11 Feb 2002 11:10:02 -0800 (PST) From: Brandon Poyner <brandon@thebiz.net> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/34839: syslogd fails to create additional log socket when socket already exists Message-ID: <200202111910.g1BJA2559618@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/34839; it has been noted by GNATS. From: Brandon Poyner <brandon@thebiz.net> To: Maxim Konovalov <maxim@macomnet.ru> Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: misc/34839: syslogd fails to create additional log socket when socket already exists Date: Mon, 11 Feb 2002 14:07:03 -0500 (EST) Thank you, the patch works as expected. The socket was re-created during startup after a powercycle (improper shutdown). -- Brandon Poyner, Unix Systems Engineer brandon@thebiz.net BiznessOnline.com, Inc. http://www.BiznessOnline.com/ On Mon, 11 Feb 2002, Maxim Konovalov wrote: > > Could you please try a patch below (obtained from OpenBSD): > > Index: syslogd.c > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/syslogd/syslogd.c,v > retrieving revision 1.95 > diff -u -r1.95 syslogd.c > --- syslogd.c 9 Jan 2002 17:36:53 -0000 1.95 > +++ syslogd.c 11 Feb 2002 18:26:24 -0000 > @@ -444,6 +444,8 @@ > #define SUN_LEN(unp) (strlen((unp)->sun_path) + 2) > #endif > for (i = 0; i < nfunix; i++) { > + (void)unlink(funixn[i]); > + > memset(&sunx, 0, sizeof(sunx)); > sunx.sun_family = AF_UNIX; > (void)strlcpy(sunx.sun_path, funixn[i], sizeof(sunx.sun_path)); > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202111910.g1BJA2559618>