[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature request: Can bash provide some mechanism for locking/unlocki
Re: Feature request: Can bash provide some mechanism for locking/unlocking?
Thu, 15 Apr 2010 10:57:28 -0600
Eric Blake wrote:
> Clark J. Wang wrote:
> > In C code I can use lockf(), flock(), semaphore and mutex for locking /
> > unlocking. Can bash provide some similar mechanisms?
> man 1 flock
> If necessary, you may need to install:
There is also 'lockfile' distributed with 'procmail'.
I tend to use 'mkdir' when I need a semaphore in a shell script.
Re: Feature request: Can bash provide some mechanism for locking/unlocking?, Jan Schampera, 2010/04/15