From owner-freebsd-current Mon Jul 3 04:30:25 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id EAA01800 for current-outgoing; Mon, 3 Jul 1995 04:30:25 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id EAA01792 ; Mon, 3 Jul 1995 04:30:15 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA07361; Mon, 3 Jul 1995 13:25:21 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id NAA21251; Mon, 3 Jul 1995 13:24:47 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id LAA03564; Mon, 3 Jul 1995 11:08:53 +0200 From: J Wunsch Message-Id: <199507030908.LAA03564@uriah.heep.sax.de> Subject: Re: /etc/rc and "rm -f /var/spool/lock/*" To: Harlan.Stenn@pfcs.com (Harlan Stenn) Date: Mon, 3 Jul 1995 11:08:53 +0200 (MET DST) Cc: freebsd-current@FreeBSD.org (FreeBSD-current users), core@FreeBSD.org Reply-To: freebsd-current@FreeBSD.org (FreeBSD-current users) In-Reply-To: <27450.804752338@mumps.pfcs.com> from "Harlan Stenn" at Jul 3, 95 02:18:58 am Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 965 Sender: current-owner@FreeBSD.org Precedence: bulk [Moved to -current, no need to discuss this in -core.] As Harlan Stenn wrote: > > I am starting a "ppp -auto" from /etc/netstart. > > Assuming this is a reasonable thing for folks to do, the "rm -f > /var/spool/lock/*" in /etc/rc is "too late". Since I get spontaneous > reboots with "ppp -auto whatever" anyway, sometimes an "old" lock file > remains. I moved the "rm -f /var/spool/lock/*" to before the call to > rc.serial. Basically means that iijppp is broken in this respect. Clients are encouraged to examine an existing lock file to see if it's a stale lock (by trying to send a signal to the process). It's safe for them to remove the lock file if the process holding the lock disappeared. Lock files suck. They should not be used at all, and the only client that really needs them right now is mgetty. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)