X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sys-utils%2Fflock.1;fp=sys-utils%2Fflock.1;h=bea70c6be8fa94b04c5b15c82b14902d3c66ba88;hb=67e63c12635f0edc7600c4fd1ab44e03ae9552f1;hp=0da5ea946673020503863b3b0f54eb6b147b1ec0;hpb=ade04bb89cafe3d00feffceab75ce7354482ff7d;p=thirdparty%2Futil-linux.git diff --git a/sys-utils/flock.1 b/sys-utils/flock.1 index 0da5ea9466..bea70c6be8 100644 --- a/sys-utils/flock.1 +++ b/sys-utils/flock.1 @@ -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