diff options
author | John Polstra <jdp@FreeBSD.org> | 1998-07-08 05:29:05 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1998-07-08 05:29:05 +0000 |
commit | 2f278eac1fd88e984b78b233ef1bc0d5cd345078 (patch) | |
tree | 7db6adc3e1cc7e7b60bb1f72164d3d79ef64c944 /usr.bin/lockf/lockf.1 | |
parent | e77902181c85bbb5183c598741da75e0d5a17967 (diff) | |
download | src-2f278eac1fd88e984b78b233ef1bc0d5cd345078.tar.gz src-2f278eac1fd88e984b78b233ef1bc0d5cd345078.zip |
Add a "-k" option, to specify that the lock file should be kept
rather than removed.
Submitted by: Nick Barnes <Nick.Barnes@pobox.com>
Notes
Notes:
svn path=/head/; revision=37493
Diffstat (limited to 'usr.bin/lockf/lockf.1')
-rw-r--r-- | usr.bin/lockf/lockf.1 | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/usr.bin/lockf/lockf.1 b/usr.bin/lockf/lockf.1 index 4ce28cb62028..36b50de0cc84 100644 --- a/usr.bin/lockf/lockf.1 +++ b/usr.bin/lockf/lockf.1 @@ -1,5 +1,5 @@ .\" -.\" Copyright (C) 1997 John D. Polstra. All rights reserved. +.\" Copyright (C) 1998 John D. Polstra. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -22,9 +22,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: lockf.1,v 1.4 1997/02/22 19:55:53 peter Exp $ +.\" $Id: lockf.1,v 1.5 1998/03/23 07:44:28 charnier Exp $ .\" -.Dd January 8, 1997 +.Dd July 7, 1998 .Os FreeBSD .Dt LOCKF 1 .Sh NAME @@ -32,7 +32,7 @@ .Nd execute a command while holding a file lock .Sh SYNOPSIS .Nm -.Op Fl s +.Op Fl ks .Op Fl t Ar seconds .Ar file .Ar command @@ -51,9 +51,11 @@ After the .Ar command completes, .Nm -releases the lock and removes the -.Ar file . -BSD-style locking is used, as described in +releases the lock, and removes the +.Ar file +unless the +.Fl k +option is specified. BSD-style locking is used, as described in .Xr flock 2 ; the mere existence of the .Ar file @@ -61,6 +63,9 @@ is not considered to constitute a lock. .Pp The following options are supported: .Bl -tag -width Fl +.It Fl k +Causes the lock file to be kept (not removed) after the command +completes. .It Fl s Causes .Nm |