Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 1996 14:35:27 +0400 (MSD)
From:      =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) <ache@nagual.ru>
To:        joerg_wunsch@uriah.heep.sax.de
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: [ELM 2.4ME+ PL25 (25)] - folder is corrupt!
Message-ID:  <199608301035.OAA00606@nagual.ru>
In-Reply-To: <199608300536.HAA27731@uriah.heep.sax.de> from "J Wunsch" at "Aug 30, 96 07:36:40 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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
<ache@nagual.ru>
http://www.nagual.ru/~ache/



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