]> err.no Git - util-linux/commit
flock: use more useful example in flock.1
authorJakob Unterwurzacher <jakobunt@gmail.com>
Wed, 6 Oct 2010 11:32:20 +0000 (13:32 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 7 Oct 2010 08:24:28 +0000 (10:24 +0200)
commitc348d9346ae60b78a03d6dcd964e23fb40a625df
treed467144e00fc844fc49883d6edde2e51262dbbac
parent7bbbf650458f1828564179ade26afe5644692413
flock: use more useful example in flock.1

The example in the man page does not prevent concurrent execution, as it
obtains a shared lock. More useful is taking an exclusive lock, i.e.
remove "-s".
Additionally, IMO most people want the script to exit when the lock
cannot be acquired, so adding "-n".
sys-utils/flock.1