]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/flock.1
Manual pages: order NOTES / HISTORY / BUGS / EXAMPLE consistently
[thirdparty/util-linux.git] / sys-utils / flock.1
index 0da5ea946673020503863b3b0f54eb6b147b1ec0..bea70c6be8fa94b04c5b15c82b14902d3c66ba88 100644 (file)
@@ -124,6 +124,19 @@ Display version information and exit.
 .TP
 .BR \-h , " \-\-help"
 Display help text and exit.
+.SH EXIT STATUS
+The command uses
+.B sysexits.h
+exit status values for everything, except when using either of the options
+.B \-n
+or
+.B \-w
+which report a failure to acquire the lock with a exit status given by the
+.B \-E
+option, or 1 by default.
+.PP
+When using the \fIcommand\fR variant, and executing the child worked, then
+the exit status is that of the child command.
 .SH EXAMPLE
 Note that "shell> " in examples is a command line prompt.
 .TP
@@ -175,19 +188,6 @@ shell> flock -n 4
 This form is convenient for locking a file without spawning a subprocess.
 The shell opens the lock file for reading and writing as file descriptor 4,
 then flock is used to lock the descriptor.
-.SH EXIT STATUS
-The command uses
-.B sysexits.h
-exit status values for everything, except when using either of the options
-.B \-n
-or
-.B \-w
-which report a failure to acquire the lock with a exit status given by the
-.B \-E
-option, or 1 by default.
-.PP
-When using the \fIcommand\fR variant, and executing the child worked, then
-the exit status is that of the child command.
 .SH AUTHORS
 .UR hpa@zytor.com
 H. Peter Anvin