From owner-freebsd-current Tue Jul 4 06:50:31 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id GAA25475 for current-outgoing; Tue, 4 Jul 1995 06:50:31 -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 GAA25468 for ; Tue, 4 Jul 1995 06:50:26 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA10069; Tue, 4 Jul 1995 15:48:56 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id PAA07283 for freebsd-current@FreeBSD.org; Tue, 4 Jul 1995 15:48:55 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id OAA00739 for freebsd-current@FreeBSD.org; Tue, 4 Jul 1995 14:10:13 +0200 From: J Wunsch Message-Id: <199507041210.OAA00739@uriah.heep.sax.de> Subject: Re: /etc/rc and "rm -f /var/spool/lock/*" To: freebsd-current@FreeBSD.org Date: Tue, 4 Jul 1995 14:10:13 +0200 (MET DST) Reply-To: freebsd-current@FreeBSD.org In-Reply-To: <199507031550.KAA02622@id.slip.bcm.tmc.edu> from "Rich Murphey" at Jul 3, 95 10:50:40 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: 771 Sender: current-owner@FreeBSD.org Precedence: bulk As Rich Murphey wrote: > > |Lock files suck. They should not be used at all, and the only client > |that really needs them right now is mgetty. > > What if you wanted to run outgoing hylafax and outgoing > 'ppp -auto' on the same port. Open the callout device with O_EXCL. The lock files are only for those programs that need to open callout devices where they should use callin devices. mgetty (or vgetty) are examples of programs that need to do it, since they wish to watch modem messages before the carrier is established. Regular getty uses the dialin device, where the open() blocks until the carrier is detected. -- 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. ;-)