Skip to contentSkip to conversation

flock: document exit status of flock in man page

PATCH New Phillip Susi 1 participant 1 message Jun 3, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 flock: document exit status of flock in man page

The man page did not indicate that the exit status of flock is actually that of the child command, when one is run.

---
 sys-utils/flock.1 | 3 +++
 1 file changed, 3 insertions(+)
sys-utils/flock.1 +3 -0
index 99ae682..c245eda 100644
@@ -159,6 +159,9 @@ or
 which report a failure to acquire the lock with a return value given by the
 .I \-E
 option, or 1 by default.
+.PP
+When using the <command> variant, and executing the child worked, then
+the exit status is that of the child command.
 .SH AUTHOR
 .UR [email protected]
 H. Peter Anvin
Signature · 1 line
1.9.1