summaryrefslogtreecommitdiffstats
path: root/sys-utils/flock.1
Commit message (Collapse)AuthorAgeFilesLines
* man: Use the correct macro for a font change of one argumentBjarni Ingi Gislason2018-05-231-2/+2
| | | | | | | | Use the correct macro (I, B) for the font change of one argument, not those that are used for alternating two fonts, like "BR", "IR", "RB", or "RI". Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: Introduce no-fork option.Terry Burton2016-04-161-0/+8
| | | | | When guarding a command with flock it is sometimes preferable to not leave a flock process waiting around for the command to exit.
* flock: add --verbose optionSami Kerola2015-03-031-0/+4
| | | | | | | | | Jenkins script jobs using flock are a great example of a situation in which one may want an automation to be verbose, so that when unexpected events happen there is more hints in logs. Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: restore minus symbols in long optsJ William Piggott2015-01-211-1/+1
| | | | Signed-off-by: J William Piggott <elseifthen@gmx.com>
* flock: zero timeout is validKarel Zak2014-10-071-1/+3
| | | | | | | | | | | This patch reverts Sami's "timeout cannot be zero", introduced in commit 605325b23b36238c8f3ae165e37cab9064553cf7. The --timeout 0 has been originally interpreted as --nonblock. The patch also add hint about this behavior to the man page. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1149974 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: fix some things that were overlooked during the first passBenno Schulenberg2014-07-281-31/+30Star
| | | | | | | Mainly more option sorting, some formatting adjustments, and the adding of a missing --version here and there. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: bring some more man pages closer to standard formattingBenno Schulenberg2014-07-161-20/+24
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* flock: document exit status of flock in man pagePhillip Susi2014-06-091-0/+3
| | | | | The man page did not indicate that the exit status of flock is actually that of the child command, when one is run.
* flock: Change the 'exit status' man page section to make more senseWieland Hoffmann2014-01-201-2/+2
| | | | Signed-off-by: Wieland Hoffmann <themineo@gmail.com>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-2/+2
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* flock: improve usage stringsMike Frysinger2013-01-091-2/+13
| | | | | | | | The current examples miss the best usage of all: specifying the command and its arguments directly on the command line. Add that to both the program usage and the man page. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* flock: user-configurable exit codeJan \"Yenya\" Kasprzak2012-06-151-3/+16
| | | | | | | | | When locking the file fails with -n or -w option, caller has no way to distinguish between the exit code 1 of the -c command, and the exit code 1 of flock(1) caused by the conflicting lock. Add a new -E <exitcode> (--conflict-exit-code) option to set the exit code for the case of locking failure to any value.
* flock: add missing word »be« to flock.1Paul Menzel2012-02-081-1/+1
|
* flock: fix flock.1 grammar by removing »s«Paul Menzel2012-02-081-1/+1
|
* docs: restructure flock.1 manual pageSami Kerola2011-09-291-42/+82
| | | | | | | The commit aligns manual page with howto-man-page.txt, and adds example section which I hope makes usage of this command easier. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* flock: fix example in man pageKarel Zak2011-08-291-1/+1
| | | | | Reported-by: Pierre Gaston <pierre.gaston@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-221-2/+2
| | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* sys-utils: fix manpage typosDavidlohr Bueso2011-01-171-1/+1
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: use more useful example in flock.1Jakob Unterwurzacher2010-10-071-1/+1
| | | | | | | | The example in the man page does not prevent concurrent execution, as it obtains a shared lock. More useful is taking an exclusive lock, i.e. remove "-s". Additionally, IMO most people want the script to exit when the lock cannot be acquired, so adding "-n".
* flock: fix file number in flock.1 man pagePatrice Dumas2010-07-071-2/+2
| | | | | | | | | | | According to a search on the internet, the 200 file number is not a posix shell feature, since posix shells are only mandated to have 1 through 9. I haven't verified that this claim is right, but, at least dash doesn't like the 200. So here is a patch for the flock man page that replaces 200 with 9. Signed-off-by: Patrice Dumas <pertusus@free.fr> Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: Allow lock directoryAlexey Gladkov2008-12-031-3/+5
| | | | | | | | | | With this patch, you can lock directory. Additionally, lockfile opens with O_NOCTTY. Try to open file with O_CREAT flag first, and without it if open fails with EISDIR. Suggested by H. Peter Anvin. Signed-off-by: Alexey Gladkov <legion@altlinux.org>
* remove CVS keywordsmaximilian attems2008-07-281-1/+0Star
| | | | | | | | this patch removes old CVS keywords from comments. mount(8) works for newer Linux then 0.99 ;) Signed-off-by: maximilian attems <max@stro.at>
* flock: typo in man pageA. Costa2007-09-021-1/+1
| | | | Signed-off-by: LaMont Jones <lamont@debian.org>
* man pages: add "AVAILABILITY" sectionKarel Zak2007-07-031-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre7 tarball.Karel Zak2006-12-071-7/+10
|
* Imported from util-linux-2.13-pre2 tarball.Karel Zak2006-12-071-37/+96
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-1/+3
|
* Imported from util-linux-2.12j tarball.Karel Zak2006-12-071-0/+45