From: Jakob Unterwurzacher Date: Wed, 6 Oct 2010 11:32:20 +0000 (+0200) Subject: flock: use more useful example in flock.1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c348d9346ae60b78a03d6dcd964e23fb40a625df;p=util-linux 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". --- diff --git a/sys-utils/flock.1 b/sys-utils/flock.1 index 6ae584bd..00ea9b99 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