summaryrefslogtreecommitdiffstats
path: root/sys-utils/flock.1
diff options
context:
space:
mode:
authorJakob Unterwurzacher2010-10-06 13:32:20 +0200
committerKarel Zak2010-10-07 10:24:28 +0200
commitc348d9346ae60b78a03d6dcd964e23fb40a625df (patch)
treed467144e00fc844fc49883d6edde2e51262dbbac /sys-utils/flock.1
parentfindmnt: fix support for -a option (diff)
downloadkernel-qcow2-util-linux-c348d9346ae60b78a03d6dcd964e23fb40a625df.tar.gz
kernel-qcow2-util-linux-c348d9346ae60b78a03d6dcd964e23fb40a625df.tar.xz
kernel-qcow2-util-linux-c348d9346ae60b78a03d6dcd964e23fb40a625df.zip
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".
Diffstat (limited to 'sys-utils/flock.1')
-rw-r--r--sys-utils/flock.12
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/flock.1 b/sys-utils/flock.1
index 6ae584bd4..00ea9b99b 100644
--- a/sys-utils/flock.1
+++ b/sys-utils/flock.1
@@ -51,7 +51,7 @@ used the following manner:
.PP
\fC(
.br
- flock -s 9
+ flock -n 9
.br
# ... commands executed under lock ...
.br