Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2002 12:20:33 +0300 (MSK)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Brian Somers <brian@freebsd-services.com>
Cc:        Maxim Konovalov <maxim@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/usr.sbin/syslogd syslogd.c 
Message-ID:  <20020306120232.O6091-100000@news1.macomnet.ru>
In-Reply-To: <200203051905.g25J5VH6001264@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello Brian,

On 19:05-0000, Mar 5, 2002, Brian Somers wrote:

> > maxim       2002/02/27 00:42:07 PST
> >
> >   Modified files:        (Branch: RELENG_4)
> >     usr.sbin/syslogd     syslogd.c
> >   Log:
> >   MFC rev. 1.96: unlink all log sockets at startup.
> >
> >   Revision   Changes    Path
> >   1.59.2.15  +1 -0      src/usr.sbin/syslogd/syslogd.c
>
> So if syslogd is run a second time, it'll blow away /var/run/log and
> then (probably) fail trying to open it's udp socket ?
>
> This doesn't sound wise.

The old syslogd(8) does the same:

# ident /usr/sbin/syslogd | grep syslogd.c
     $FreeBSD: src/usr.sbin/syslogd/syslogd.c,v 1.59.2.13 2002/01/08
04:45:52 archie Exp $
#
# killall syslogd
# /usr/sbin/syslogd
# ls -l /var/run/log
srw-rw-rw-  1 root  wheel  0  6 อมา 12:01 /var/run/log
# /usr/sbin/syslogd
syslogd: child pid 14485 exited with return code 1
# ls -l /var/run/log
ls: /var/run/log: No such file or directory
#

As you see the second syslogd fails, calls die() and die() unlinks
/var/run/log, so I changed nothing WRT this behaviour.

- -maxim


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020306120232.O6091-100000>