From owner-freebsd-hackers Fri Aug 30 03:51:51 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA05662 for hackers-outgoing; Fri, 30 Aug 1996 03:51:51 -0700 (PDT) Received: from sovcom.kiae.su (sovcom.kiae.su [193.125.152.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA05637 for ; Fri, 30 Aug 1996 03:51:44 -0700 (PDT) Received: by sovcom.kiae.su id AA16933 (5.65.kiae-1 ); Fri, 30 Aug 1996 13:37:52 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Fri, 30 Aug 96 13:37:51 +0300 Received: (from ache@localhost) by nagual.ru (8.7.5/8.7.3) id OAA00606; Fri, 30 Aug 1996 14:35:27 +0400 (MSD) Message-Id: <199608301035.OAA00606@nagual.ru> Subject: Re: [ELM 2.4ME+ PL25 (25)] - folder is corrupt! In-Reply-To: <199608300536.HAA27731@uriah.heep.sax.de> from "J Wunsch" at "Aug 30, 96 07:36:40 am" To: joerg_wunsch@uriah.heep.sax.de Date: Fri, 30 Aug 1996 14:35:27 +0400 (MSD) Cc: freebsd-hackers@FreeBSD.org From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) Organization: self X-Class: Fast X-Mailer: ELM [version 2.4ME+ PL25 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > As [?KOI8-R?] wrote: > > > Sendmail and Elm both use flock(). > > Procmail use fcntl(), but I just change it to flock() too. > > fcntl() on the entire file is identical to flock() -- they use the > same functions internally. No, you lose your fcntl lock on any close of the file, so you can't fcntl lock passwd then use getpw*() functions, read man fcntl for more info. fcntl lock treated as depriciated in BSD. -- Andrey A. Chernov http://www.nagual.ru/~ache/