Bug 1149974 - /usr/bin/flock --timeout=0 not work
Summary: /usr/bin/flock --timeout=0 not work
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 20
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-07 05:22 UTC by Reinin Oyama
Modified: 2014-10-24 14:17 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-24 14:17:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Reinin Oyama 2014-10-07 05:22:34 UTC
Description of problem:
flock --timeout=0 lockfile ehco
Show error-message like this.
flock: timeout cannot be zero

it differs from document!
timeout=0 must be allowed!

Version-Release number of selected component (if applicable):

util-linux-2.24.2-1.fc20.x86_64

How reproducible:

Allways

Steps to Reproduce:

flock --timeout=0 lockfile ehco

Actual results:

flock: timeout cannot be zero

Expected results:

Must be no error message!

Additional info:

No

Comment 1 Karel Zak 2014-10-07 10:18:56 UTC
You're right, the "timeout cannot be zero" nonsense was introduced 3 years ago.

Fixed by upstream commit c4604c38b503c8c46e50fc2048ebbcbcfcad3802, fedora package will be fixed ASAP. 

Thanks!

Comment 2 Karel Zak 2014-10-24 14:14:07 UTC
Fixed in v2.25.2 (f21)


Note You need to log in before you can comment on or make changes to this bug.