From c348d9346ae60b78a03d6dcd964e23fb40a625df Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 6 Oct 2010 13:32:20 +0200 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5