summaryrefslogtreecommitdiffstats
path: root/sys-utils/flock.1
diff options
context:
space:
mode:
authorTerry Burton2016-04-14 13:27:52 +0200
committerTerry Burton2016-04-16 00:15:22 +0200
commit703251401cb11ee5d00a6b8f8bd9dc80c160f476 (patch)
tree6574a97ba87fd28cec5b6c7c377094239469eb73 /sys-utils/flock.1
parentbuild-sys: add --enable-libuuid-force-uuidd (diff)
downloadkernel-qcow2-util-linux-703251401cb11ee5d00a6b8f8bd9dc80c160f476.tar.gz
kernel-qcow2-util-linux-703251401cb11ee5d00a6b8f8bd9dc80c160f476.tar.xz
kernel-qcow2-util-linux-703251401cb11ee5d00a6b8f8bd9dc80c160f476.zip
flock: Introduce no-fork option.
When guarding a command with flock it is sometimes preferable to not leave a flock process waiting around for the command to exit.
Diffstat (limited to 'sys-utils/flock.1')
-rw-r--r--sys-utils/flock.18
1 files changed, 8 insertions, 0 deletions
diff --git a/sys-utils/flock.1 b/sys-utils/flock.1
index 8e9d5c29a..c10cde5ff 100644
--- a/sys-utils/flock.1
+++ b/sys-utils/flock.1
@@ -70,6 +70,14 @@ The exit code used when the \fB\-n\fP option is in use, and the
conflicting lock exists, or the \fB\-w\fP option is in use,
and the timeout is reached. The default value is \fB1\fR.
.TP
+.BR \-F , " \-\-no\-fork"
+Do not fork before executing
+.IR command .
+Upon execution the flock process is replaced by
+.IR command
+which continues to hold the lock. This option is incompatible with
+\fB\-\-close\fR as there would otherwise be nothing left to hold the lock.
+.TP
.BR \-e , " \-x" , " \-\-exclusive"
Obtain an exclusive lock, sometimes called a write lock. This is the
default.