diff options
author | Jakob Unterwurzacher | 2010-10-06 13:32:20 +0200 |
---|---|---|
committer | Karel Zak | 2010-10-07 10:24:28 +0200 |
commit | c348d9346ae60b78a03d6dcd964e23fb40a625df (patch) | |
tree | d467144e00fc844fc49883d6edde2e51262dbbac | |
parent | findmnt: fix support for -a option (diff) | |
download | kernel-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".
-rw-r--r-- | sys-utils/flock.1 | 2 |
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 |