]> git.ipfire.org Git - thirdparty/util-linux.git/commit
flock: zero timeout is valid
authorKarel Zak <kzak@redhat.com>
Tue, 7 Oct 2014 10:12:39 +0000 (12:12 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 7 Oct 2014 10:12:39 +0000 (12:12 +0200)
commitc4604c38b503c8c46e50fc2048ebbcbcfcad3802
tree76c437a9bdd22f6afd872cfb72ce3d41f390f8e8
parentf1453d528e28c15af4ba06871e377cc7d719eacc
flock: zero timeout is valid

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>
sys-utils/flock.1
sys-utils/flock.c