Simon Truss | 28 Feb 2008 20:12
Picon
Picon

Re: wanted: analog to procmail's lockfile

Aleksey Cheusov wrote:
>> In article <s93tzp2lqvf.fsf <at> chen.chizhovka.net>,
>> Aleksey Cheusov  <netbsd-help <at> netbsd.org> 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


Gmane