Re: wanted: analog to procmail's lockfile

Simon Truss <[email protected]> Thu, 28 Feb 2008 19:12:00 +0000
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
Aleksey Cheusov wrote:
>> In article <[email protected]>,
>> Aleksey Cheusov  <[email protected]> wrote:
>  >>Does anybody know more or less well known replacement for
>  >>"lockfile" utility shipped with procmail?
>  >>
>  >>I'd prefer standalone utility that is distributed without so heavy baggage.
> 
>> shlock?
> 
> Unfortunately shlock cannot WAIT until lockfile is freed :-(
> 
>    while ! shlock ...; do
>       sleep xxx;
>    done
> 
> looks ugly
> 

what about setlock in daemontools.

Simon