/lockf

Primary LanguageC

lockf

A tool from freebsd. Use the tool, can ensure that only one process is running at a time.

Usage

  • lockf [-ks] [-t seconds] file command [arguments]
  • e.g. lockf -s -t 0 /tmp/foam.lock php 1.php
  • for more, man lockf after install

Install

cd src
make && sudo make install

Thanks

Tsung's Blog