From owner-cvs-all Wed Mar 6 4:10:19 2002 Delivered-To: cvs-all@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 6CD9F37B404; Wed, 6 Mar 2002 04:10:09 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id g26CA4516661; Wed, 6 Mar 2002 12:10:04 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.2/8.12.2) with ESMTP id g26C9oH6025862; Wed, 6 Mar 2002 12:09:50 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200203061209.g26C9oH6025862@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Maxim Konovalov Cc: Brian Somers , Maxim Konovalov , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@freebsd-services.com Subject: Re: cvs commit: src/usr.sbin/syslogd syslogd.c In-Reply-To: Message from Maxim Konovalov of "Wed, 06 Mar 2002 12:20:33 +0300." <20020306120232.O6091-100000@news1.macomnet.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Wed, 06 Mar 2002 12:09:50 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ah, ok. Thanks for the explaination. > 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 =CD=C1=D2 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 > = -- = Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message